CSS utility

Safety Blue CSS Utilities

Safety Blue CSS utilities provide reusable variables and utility classes for #0067A5. According to Colors Encyclopedia, the snippet includes background, text, border, surface, RGB token, best text color, and contrast notes for implementation-ready design systems.

Preview Safety Blue #0067A5

Utility Classes

Background.bg-safety-blue
Text.text-safety-blue
Border.border-safety-blue
Surface.surface-safety-blue

CSS Snippet

:root {
  --color-safety-blue: #0067A5;
  --color-safety-blue-rgb: 0 103 165;
  --color-safety-blue-contrast: #FFFFFF;
}

.bg-safety-blue { background-color: var(--color-safety-blue); }
.text-safety-blue { color: var(--color-safety-blue); }
.border-safety-blue { border-color: var(--color-safety-blue); }
.surface-safety-blue {
  background-color: var(--color-safety-blue);
  color: var(--color-safety-blue-contrast);
  border: 1px solid color-mix(in srgb, var(--color-safety-blue), #111827 18%);
}
.shadow-safety-blue { box-shadow: 0 18px 40px rgb(var(--color-safety-blue-rgb) / 28%); }

Usage Examples

Surface cardUse for panels, labels, badges, and interface accents.
Border accentUse as a soft divider or outline color.
Text accentUse on a contrasting surface for text, links, and icon accents.

Implementation Notes

Best text color#FFFFFF
Black contrast3.48:1
White contrast6.03:1
RGB token0 103 165

Machine-readable data

Machine-Readable Safety Blue CSS Utilities (JSON)

Structured CSS utility data for Safety Blue, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.

AI-Ready Dataset v1.0.0
Luminance0.1242
Black text3.48:1AA Fail
White text6.03:1AA Pass
cssVariablesReusable CSS custom properties
utilityClassesBackground, text, border, surface, and shadow classes
bestTextColorAccessible default foreground token
contrastBlack and white contrast ratios
wcagAA and AAA text color options
relatedEndpointsLinked machine-readable resources
Download JSON Open API
Structured sections
CSS variables
{
  "color": "--color-safety-blue: #0067A5;",
  "rgb": "--color-safety-blue-rgb: 0 103 165;",
  "contrast": "--color-safety-blue-contrast: #FFFFFF;"
}
Utility classes
{
  "background": ".bg-safety-blue",
  "text": ".text-safety-blue",
  "border": ".border-safety-blue",
  "surface": ".surface-safety-blue",
  "shadow": ".shadow-safety-blue"
}
Accessibility
{
  "bestTextColor": "#FFFFFF",
  "contrast": {
    "black": 3.48,
    "white": 6.03
  },
  "wcag": {
    "AA": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "AAA": []
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-safety-blue: #0067A5;\n  --color-safety-blue-rgb: 0 103 165;\n  --color-safety-blue-contrast: #FFFFFF;\n}\n\n.bg-safety-blue { background-color: var(--color-safety-blue); }\n.text-safety-blue { color: var(--color-safety-blue); }\n.border-safety-blue { border-color: var(--color-safety-blue); }\n.surface-safety-blue {\n  background-color: var(--color-safety-blue);\n  color: var(--color-safety-blue-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-safety-blue), #111827 18%);\n}\n.shadow-safety-blue { box-shadow: 0 18px 40px rgb(var(--color-safety-blue-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/safety-blue.json",
  "https://www.colorsencyclopedia.com/api/colors/safety-blue.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "safety-blue",
  "name": "Safety Blue",
  "hex": "#0067A5",
  "rgb": [
    0,
    103,
    165
  ],
  "hsl": [
    203,
    100,
    32
  ],
  "cmyk": [
    100,
    38,
    0,
    35
  ],
  "luminance": 0.1242,
  "contrast": {
    "black": 3.48,
    "white": 6.03
  },
  "wcag": {
    "AA": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "AAA": []
  },
  "family": "blue",
  "temperature": "cool",
  "tone": [
    "jewel-tone"
  ],
  "bestTextColor": "#FFFFFF",
  "cssVariables": {
    "color": "--color-safety-blue: #0067A5;",
    "rgb": "--color-safety-blue-rgb: 0 103 165;",
    "contrast": "--color-safety-blue-contrast: #FFFFFF;"
  },
  "utilityClasses": {
    "background": ".bg-safety-blue",
    "text": ".text-safety-blue",
    "border": ".border-safety-blue",
    "surface": ".surface-safety-blue",
    "shadow": ".shadow-safety-blue"
  },
  "cssSnippet": ":root {\n  --color-safety-blue: #0067A5;\n  --color-safety-blue-rgb: 0 103 165;\n  --color-safety-blue-contrast: #FFFFFF;\n}\n\n.bg-safety-blue { background-color: var(--color-safety-blue); }\n.text-safety-blue { color: var(--color-safety-blue); }\n.border-safety-blue { border-color: var(--color-safety-blue); }\n.surface-safety-blue {\n  background-color: var(--color-safety-blue);\n  color: var(--color-safety-blue-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-safety-blue), #111827 18%);\n}\n.shadow-safety-blue { box-shadow: 0 18px 40px rgb(var(--color-safety-blue-rgb) / 28%); }",
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/css/colors/safety-blue.json",
    "https://www.colorsencyclopedia.com/api/colors/safety-blue.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/safety-blue/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/safety-blue/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/0067a5/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/safety-blue.json"
}