#04020F#04020F

#04020F is a very dark, muted blue. Relative luminance 0.001; OKLCH L 10.5% C 0.037 H 289.8°. Best body text is #FFFFFF at 20.57:1 contrast (WCAG AA passes).

Color values

HEX#04020F
RGBrgb(4, 2, 15)
HSLhsl(249, 76%, 3%)
HSVhsv(249, 87%, 6%)
CMYKcmyk(73.3%, 86.7%, 0%, 94.1%)
CIE-LABlab(0.94, 2.43, -5.01)
CIE-LCHlch(0.94, 5.57, 295.90°)
OKLaboklab(10.49% 0.0125 -0.0348)
OKLCHoklch(10.49% 0.037 289.8)
XYZxyz(0.1580, 0.1037, 0.4635)
Luminance0.0010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04020F #0D0F02
analogous
#02060F #04020F #0A020F
triadic
#04020F #0F0402 #020F04
tetradic
#04020F #0F0206 #0D0F02 #020F0A
square
#04020F #0F0206 #0D0F02 #020F0A
split-complementary
#04020F #0F0A02 #060F02
monochromatic
#07041B #07041B #07041B #120945 #21107B

Accessibility & contrast

On white

20.57
#04020F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#04020F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04020F
20.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04020F#FFFFFF#000000##FFFFFF
##04020F1.0020.571.0220.57
#FFFFFF20.571.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000410
Deuteranopia (green-blind)
#00030F
Tritanopia (blue-blind)
#020406
Achromatopsia (no color)
#030303

Design tokens & code

CSS
--color: #04020f;
/* rgb */ color: rgb(4, 2, 15);
/* oklch */ color: oklch(10.5% 0.037 289.8);
Tailwind
colors: {
  custom: {
    50: '#48484e',
    500: '#04020f',
    950: '#000000',
  },
}
SCSS
$custom: #04020f;
$custom-light: #48484e;
$custom-dark: #000000;
JSON
{
  "hex": "#04020f",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 15
  },
  "hsl": {
    "h": 249.231,
    "s": 76.471,
    "l": 3.333
  },
  "oklch": {
    "l": 0.10488,
    "c": 0.03698,
    "h": 289.8
  },
  "luminance": 0.00104
}

Semantic roles & 50–950 ramp

primary
#04020F
secondary
#4B5419
accent
#F335D6
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #04020F

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

Preview Lab → · Contrast checker → · Palette generator →

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