#04001F#04001F

#04001F is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 11.7% C 0.071 H 279.6°. Best body text is #FFFFFF at 20.49:1 contrast (WCAG AA passes).

Color values

HEX#04001F
RGBrgb(4, 0, 31)
HSLhsl(248, 100%, 6%)
HSVhsv(248, 100%, 12%)
CMYKcmyk(87.1%, 100%, 0%, 87.8%)
CIE-LABlab(1.13, 7.32, -16.24)
CIE-LCHlch(1.13, 17.81, 294.28°)
OKLaboklab(11.68% 0.0118 -0.0699)
OKLCHoklch(11.68% 0.071 279.6)
XYZxyz(0.2973, 0.1247, 1.3045)
Luminance0.0013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04001F #1B1F00
analogous
#000B1F #04001F #13001F
triadic
#04001F #1F0400 #001F04
tetradic
#04001F #1F000B #1B1F00 #001F13
square
#04001F #1F000B #1B1F00 #001F13
split-complementary
#04001F #1F1300 #0B1F00
monochromatic
#04001F #04001F #04001F #0C005C #140099

Accessibility & contrast

On white

20.49
#04001F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04001F
20.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04001F#FFFFFF#000000##FFFFFF
##04001F1.0020.491.0220.49
#FFFFFF20.491.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000520
Deuteranopia (green-blind)
#00031E
Tritanopia (blue-blind)
#00060D
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #04001f;
/* rgb */ color: rgb(4, 0, 31);
/* oklch */ color: oklch(11.7% 0.071 279.6);
Tailwind
colors: {
  custom: {
    50: '#48475a',
    500: '#04001f',
    950: '#000000',
  },
}
SCSS
$custom: #04001f;
$custom-light: #48475a;
$custom-dark: #000000;
JSON
{
  "hex": "#04001f",
  "rgb": {
    "r": 4,
    "g": 0,
    "b": 31
  },
  "hsl": {
    "h": 247.742,
    "s": 100,
    "l": 6.078
  },
  "oklch": {
    "l": 0.11681,
    "c": 0.07087,
    "h": 279.6
  },
  "luminance": 0.00125
}

Semantic roles & 50–950 ramp

primary
#04001F
secondary
#5D6812
accent
#FF29E3
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000004
muted
#777779

Preview Lab

Preview with #04001F

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

Preview Lab → · Contrast checker → · Palette generator →

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