#04062C#04062C

#04062C is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.7% C 0.076 H 270.5°. Best body text is #FFFFFF at 19.67:1 contrast (WCAG AA passes).

Color values

HEX#04062C
RGBrgb(4, 6, 44)
HSLhsl(237, 83%, 9%)
HSVhsv(237, 91%, 17%)
CMYKcmyk(90.9%, 86.4%, 0%, 82.7%)
CIE-LABlab(3.05, 10.18, -23.37)
CIE-LCHlch(3.05, 25.49, 293.55°)
OKLaboklab(15.66% 0.0007 -0.0759)
OKLCHoklch(15.66% 0.076 270.5)
XYZxyz(0.5697, 0.3378, 2.4176)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04062C #2C2A04
analogous
#041A2C #04062C #16042C
triadic
#04062C #2C0406 #062C04
tetradic
#04062C #2C041A #2C2A04 #042C16
square
#04062C #2C041A #2C2A04 #042C16
split-complementary
#04062C #2C1604 #1A2C04
monochromatic
#03041C #03041C #04062C #090E64 #0E159C

Accessibility & contrast

On white

19.67
#04062C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04062C
19.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04062C#FFFFFF#000000##FFFFFF
##04062C1.0019.671.0719.67
#FFFFFF19.671.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2D
Deuteranopia (green-blind)
#00092B
Tritanopia (blue-blind)
#001018
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #04062c;
/* rgb */ color: rgb(4, 6, 44);
/* oklch */ color: oklch(15.7% 0.076 270.5);
Tailwind
colors: {
  custom: {
    50: '#494965',
    500: '#04062c',
    950: '#000000',
  },
}
SCSS
$custom: #04062c;
$custom-light: #494965;
$custom-dark: #000000;
JSON
{
  "hex": "#04062c",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 44
  },
  "hsl": {
    "h": 237,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.15659,
    "c": 0.07587,
    "h": 270.5
  },
  "luminance": 0.00338
}

Semantic roles & 50–950 ramp

primary
#04062C
secondary
#6F6B1D
accent
#EF2EFA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #04062C

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

Preview Lab → · Contrast checker → · Palette generator →

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