#04062F#04062F

#04062F is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.1% C 0.081 H 270.1°. Best body text is #FFFFFF at 19.59:1 contrast (WCAG AA passes).

Color values

HEX#04062F
RGBrgb(4, 6, 47)
HSLhsl(237, 84%, 10%)
HSVhsv(237, 91%, 18%)
CMYKcmyk(91.5%, 87.2%, 0%, 81.6%)
CIE-LABlab(3.26, 11.67, -25.29)
CIE-LCHlch(3.26, 27.85, 294.76°)
OKLaboklab(16.06% 0.0002 -0.0806)
OKLCHoklch(16.06% 0.081 270.1)
XYZxyz(0.6281, 0.3612, 2.7254)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04062F #2F2D04
analogous
#041C2F #04062F #17042F
triadic
#04062F #2F0406 #062F04
tetradic
#04062F #2F041C #2F2D04 #042F17
square
#04062F #2F041C #2F2D04 #042F17
split-complementary
#04062F #2F1704 #1C2F04
monochromatic
#02041C #02041C #04062F #090D67 #0E14A0

Accessibility & contrast

On white

19.59
#04062F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04062F
19.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04062F#FFFFFF#000000##FFFFFF
##04062F1.0019.591.0719.59
#FFFFFF19.591.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E30
Deuteranopia (green-blind)
#000A2E
Tritanopia (blue-blind)
#001119
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #04062f;
/* rgb */ color: rgb(4, 6, 47);
/* oklch */ color: oklch(16.1% 0.081 270.1);
Tailwind
colors: {
  custom: {
    50: '#4a4968',
    500: '#04062f',
    950: '#000000',
  },
}
SCSS
$custom: #04062f;
$custom-light: #4a4968;
$custom-dark: #000000;
JSON
{
  "hex": "#04062f",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 47
  },
  "hsl": {
    "h": 237.209,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.16058,
    "c": 0.08057,
    "h": 270.1
  },
  "luminance": 0.00361
}

Semantic roles & 50–950 ramp

primary
#04062F
secondary
#726E1D
accent
#F12DFB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #04062F

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

Preview Lab → · Contrast checker → · Palette generator →

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