CSS utility

Slate Navy CSS Utilities

Slate Navy CSS utilities provide reusable variables and utility classes for #30475E. 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 Slate Navy #30475E

Utility Classes

Background.bg-slate-navy
Text.text-slate-navy
Border.border-slate-navy
Surface.surface-slate-navy

CSS Snippet

:root {
  --color-slate-navy: #30475E;
  --color-slate-navy-rgb: 48 71 94;
  --color-slate-navy-contrast: #FFFFFF;
}

.bg-slate-navy { background-color: var(--color-slate-navy); }
.text-slate-navy { color: var(--color-slate-navy); }
.border-slate-navy { border-color: var(--color-slate-navy); }
.surface-slate-navy {
  background-color: var(--color-slate-navy);
  color: var(--color-slate-navy-contrast);
  border: 1px solid color-mix(in srgb, var(--color-slate-navy), #111827 18%);
}
.shadow-slate-navy { box-shadow: 0 18px 40px rgb(var(--color-slate-navy-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 contrast2.19:1
White contrast9.6:1
RGB token48 71 94

Machine-readable data

Machine-Readable Slate Navy CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.0594
Black text2.19:1AA Fail
White text9.6: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-slate-navy: #30475E;",
  "rgb": "--color-slate-navy-rgb: 48 71 94;",
  "contrast": "--color-slate-navy-contrast: #FFFFFF;"
}
Utility classes
{
  "background": ".bg-slate-navy",
  "text": ".text-slate-navy",
  "border": ".border-slate-navy",
  "surface": ".surface-slate-navy",
  "shadow": ".shadow-slate-navy"
}
Accessibility
{
  "bestTextColor": "#FFFFFF",
  "contrast": {
    "black": 2.19,
    "white": 9.6
  },
  "wcag": {
    "AA": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "AAA": [
      "#FFFFFF",
      "#F5F5F5"
    ]
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-slate-navy: #30475E;\n  --color-slate-navy-rgb: 48 71 94;\n  --color-slate-navy-contrast: #FFFFFF;\n}\n\n.bg-slate-navy { background-color: var(--color-slate-navy); }\n.text-slate-navy { color: var(--color-slate-navy); }\n.border-slate-navy { border-color: var(--color-slate-navy); }\n.surface-slate-navy {\n  background-color: var(--color-slate-navy);\n  color: var(--color-slate-navy-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-slate-navy), #111827 18%);\n}\n.shadow-slate-navy { box-shadow: 0 18px 40px rgb(var(--color-slate-navy-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/slate-navy.json",
  "https://www.colorsencyclopedia.com/api/colors/slate-navy.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "slate-navy",
  "name": "Slate Navy",
  "hex": "#30475E",
  "rgb": [
    48,
    71,
    94
  ],
  "hsl": [
    210,
    32,
    28
  ],
  "cmyk": [
    49,
    24,
    0,
    63
  ],
  "luminance": 0.0594,
  "contrast": {
    "black": 2.19,
    "white": 9.6
  },
  "wcag": {
    "AA": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "AAA": [
      "#FFFFFF",
      "#F5F5F5"
    ]
  },
  "family": "blue",
  "temperature": "cool",
  "tone": [
    "balanced"
  ],
  "bestTextColor": "#FFFFFF",
  "cssVariables": {
    "color": "--color-slate-navy: #30475E;",
    "rgb": "--color-slate-navy-rgb: 48 71 94;",
    "contrast": "--color-slate-navy-contrast: #FFFFFF;"
  },
  "utilityClasses": {
    "background": ".bg-slate-navy",
    "text": ".text-slate-navy",
    "border": ".border-slate-navy",
    "surface": ".surface-slate-navy",
    "shadow": ".shadow-slate-navy"
  },
  "cssSnippet": ":root {\n  --color-slate-navy: #30475E;\n  --color-slate-navy-rgb: 48 71 94;\n  --color-slate-navy-contrast: #FFFFFF;\n}\n\n.bg-slate-navy { background-color: var(--color-slate-navy); }\n.text-slate-navy { color: var(--color-slate-navy); }\n.border-slate-navy { border-color: var(--color-slate-navy); }\n.surface-slate-navy {\n  background-color: var(--color-slate-navy);\n  color: var(--color-slate-navy-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-slate-navy), #111827 18%);\n}\n.shadow-slate-navy { box-shadow: 0 18px 40px rgb(var(--color-slate-navy-rgb) / 28%); }",
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/css/colors/slate-navy.json",
    "https://www.colorsencyclopedia.com/api/colors/slate-navy.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/slate-navy/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/slate-navy/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/30475e/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/slate-navy.json"
}