#04062E#04062E

#04062E is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 15.9% C 0.079 H 270.2°. Best body text is #FFFFFF at 19.62:1 contrast (WCAG AA passes).

Color values

HEX#04062E
RGBrgb(4, 6, 46)
HSLhsl(237, 84%, 10%)
HSVhsv(237, 91%, 18%)
CMYKcmyk(91.3%, 87%, 0%, 82%)
CIE-LABlab(3.19, 11.16, -24.65)
CIE-LCHlch(3.19, 27.06, 294.35°)
OKLaboklab(15.92% 0.0003 -0.079)
OKLCHoklch(15.92% 0.079 270.2)
XYZxyz(0.6082, 0.3533, 2.6204)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04062E #2E2C04
analogous
#041B2E #04062E #17042E
triadic
#04062E #2E0406 #062E04
tetradic
#04062E #2E041B #2E2C04 #042E17
square
#04062E #2E041B #2E2C04 #042E17
split-complementary
#04062E #2E1704 #1B2E04
monochromatic
#02041C #02041C #04062E #090D66 #0E159F

Accessibility & contrast

On white

19.62
#04062E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#04062E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04062E
19.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04062E#FFFFFF#000000##FFFFFF
##04062E1.0019.621.0719.62
#FFFFFF19.621.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2F
Deuteranopia (green-blind)
#00092D
Tritanopia (blue-blind)
#001119
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #04062e;
/* rgb */ color: rgb(4, 6, 46);
/* oklch */ color: oklch(15.9% 0.079 270.2);
Tailwind
colors: {
  custom: {
    50: '#4a4967',
    500: '#04062e',
    950: '#000000',
  },
}
SCSS
$custom: #04062e;
$custom-light: #4a4967;
$custom-dark: #000000;
JSON
{
  "hex": "#04062e",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 46
  },
  "hsl": {
    "h": 237.143,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.15924,
    "c": 0.07901,
    "h": 270.2
  },
  "luminance": 0.00353
}

Semantic roles & 50–950 ramp

primary
#04062E
secondary
#716D1D
accent
#F12EFA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #04062E

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

Preview Lab → · Contrast checker → · Palette generator →

#04062E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva