#04062D#04062D

#04062D is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.8% C 0.077 H 270.4°. Best body text is #FFFFFF at 19.64:1 contrast (WCAG AA passes).

Color values

HEX#04062D
RGBrgb(4, 6, 45)
HSLhsl(237, 84%, 10%)
HSVhsv(237, 91%, 18%)
CMYKcmyk(91.1%, 86.7%, 0%, 82.4%)
CIE-LABlab(3.12, 10.66, -24.01)
CIE-LCHlch(3.12, 26.27, 293.95°)
OKLaboklab(15.79% 0.0005 -0.0774)
OKLCHoklch(15.79% 0.077 270.4)
XYZxyz(0.5887, 0.3455, 2.5178)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04062D #2D2B04
analogous
#041B2D #04062D #17042D
triadic
#04062D #2D0406 #062D04
tetradic
#04062D #2D041B #2D2B04 #042D17
square
#04062D #2D041B #2D2B04 #042D17
split-complementary
#04062D #2D1704 #1B2D04
monochromatic
#02041C #02041C #04062D #090D65 #0E159D

Accessibility & contrast

On white

19.64
#04062D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04062D
19.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04062D#FFFFFF#000000##FFFFFF
##04062D1.0019.641.0719.64
#FFFFFF19.641.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2E
Deuteranopia (green-blind)
#00092C
Tritanopia (blue-blind)
#001118
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #04062d;
/* rgb */ color: rgb(4, 6, 45);
/* oklch */ color: oklch(15.8% 0.077 270.4);
Tailwind
colors: {
  custom: {
    50: '#4a4966',
    500: '#04062d',
    950: '#000000',
  },
}
SCSS
$custom: #04062d;
$custom-light: #4a4966;
$custom-dark: #000000;
JSON
{
  "hex": "#04062d",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 45
  },
  "hsl": {
    "h": 237.073,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.15791,
    "c": 0.07745,
    "h": 270.4
  },
  "luminance": 0.00346
}

Semantic roles & 50–950 ramp

primary
#04062D
secondary
#706C1D
accent
#F02EFA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #04062D

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

Preview Lab → · Contrast checker → · Palette generator →

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