#04085F#04085F

#04085F is a very dark, vivid blue. Relative luminance 0.010; OKLCH L 23.2% C 0.143 H 266.2°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#04085F
RGBrgb(4, 8, 95)
HSLhsl(237, 92%, 19%)
HSVhsv(237, 96%, 37%)
CMYKcmyk(95.8%, 91.6%, 0%, 62.7%)
CIE-LABlab(9.20, 33.91, -49.43)
CIE-LCHlch(9.20, 59.94, 304.45°)
OKLaboklab(23.2% -0.0095 -0.1431)
OKLCHoklch(23.2% 0.143 266.2)
XYZxyz(2.2017, 1.0254, 10.9061)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04085F #5F5B04
analogous
#04365F #04085F #2E045F
triadic
#04085F #5F0408 #085F04
tetradic
#04085F #5F0436 #5F5B04 #045F2E
square
#04085F #5F0436 #5F5B04 #045F2E
split-complementary
#04085F #5F2E04 #365F04
monochromatic
#01021D #020324 #04085F #060D9A #0912D4

Accessibility & contrast

On white

17.42
#04085F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#04085F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04085F
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04085F#FFFFFF#000000##FFFFFF
##04085F1.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F61
Deuteranopia (green-blind)
#00155E
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #04085f;
/* rgb */ color: rgb(4, 8, 95);
/* oklch */ color: oklch(23.2% 0.143 266.2);
Tailwind
colors: {
  custom: {
    50: '#5d4b8e',
    500: '#04085f',
    950: '#000000',
  },
}
SCSS
$custom: #04085f;
$custom-light: #5d4b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#04085f",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 95
  },
  "hsl": {
    "h": 237.363,
    "s": 91.919,
    "l": 19.412
  },
  "oklch": {
    "l": 0.23202,
    "c": 0.14344,
    "h": 266.2
  },
  "luminance": 0.01026
}

Semantic roles & 50–950 ramp

primary
#04085F
secondary
#9D9722
accent
#F629FF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05010C
muted
#79777D

Preview Lab

Preview with #04085F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#04085F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva