#04062B#04062B

#04062B is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.5% C 0.074 H 270.6°. Best body text is #FFFFFF at 19.70:1 contrast (WCAG AA passes).

Color values

HEX#04062B
RGBrgb(4, 6, 43)
HSLhsl(237, 83%, 9%)
HSVhsv(237, 91%, 17%)
CMYKcmyk(90.7%, 86%, 0%, 83.1%)
CIE-LABlab(2.98, 9.71, -22.71)
CIE-LCHlch(2.98, 24.70, 293.15°)
OKLaboklab(15.53% 0.0008 -0.0743)
OKLCHoklch(15.53% 0.074 270.6)
XYZxyz(0.5511, 0.3304, 2.3198)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04062B #2B2904
analogous
#041A2B #04062B #16042B
triadic
#04062B #2B0406 #062B04
tetradic
#04062B #2B041A #2B2904 #042B16
square
#04062B #2B041A #2B2904 #042B16
split-complementary
#04062B #2B1604 #1A2B04
monochromatic
#03041C #03041C #04062B #090E63 #0E169B

Accessibility & contrast

On white

19.70
#04062B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04062B
19.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04062B#FFFFFF#000000##FFFFFF
##04062B1.0019.701.0719.70
#FFFFFF19.701.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2C
Deuteranopia (green-blind)
#00092A
Tritanopia (blue-blind)
#001017
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #04062b;
/* rgb */ color: rgb(4, 6, 43);
/* oklch */ color: oklch(15.5% 0.074 270.6);
Tailwind
colors: {
  custom: {
    50: '#494964',
    500: '#04062b',
    950: '#000000',
  },
}
SCSS
$custom: #04062b;
$custom-light: #494964;
$custom-dark: #000000;
JSON
{
  "hex": "#04062b",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 43
  },
  "hsl": {
    "h": 236.923,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15529,
    "c": 0.07428,
    "h": 270.6
  },
  "luminance": 0.0033
}

Semantic roles & 50–950 ramp

primary
#04062B
secondary
#6E6A1D
accent
#EF2EF9
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #04062B

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

Preview Lab → · Contrast checker → · Palette generator →

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