#04001E#04001E

#04001E is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 11.5% C 0.070 H 280.3°. Best body text is #FFFFFF at 20.51:1 contrast (WCAG AA passes).

Color values

HEX#04001E
RGBrgb(4, 0, 30)
HSLhsl(248, 100%, 6%)
HSVhsv(248, 100%, 12%)
CMYKcmyk(86.7%, 100%, 0%, 88.2%)
CIE-LABlab(1.08, 6.99, -15.50)
CIE-LCHlch(1.08, 17.01, 294.28°)
OKLaboklab(11.52% 0.0124 -0.0684)
OKLCHoklch(11.52% 0.07 280.3)
XYZxyz(0.2843, 0.1195, 1.2361)
Luminance0.0012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04001E #1A1E00
analogous
#000B1E #04001E #13001E
triadic
#04001E #1E0400 #001E04
tetradic
#04001E #1E000B #1A1E00 #001E13
square
#04001E #1E000B #1A1E00 #001E13
split-complementary
#04001E #1E1300 #0B1E00
monochromatic
#04001F #04001F #04001F #0C005B #140098

Accessibility & contrast

On white

20.51
#04001E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04001E
20.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04001E#FFFFFF#000000##FFFFFF
##04001E1.0020.511.0220.51
#FFFFFF20.511.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04001e;
/* rgb */ color: rgb(4, 0, 30);
/* oklch */ color: oklch(11.5% 0.070 280.3);
Tailwind
colors: {
  custom: {
    50: '#484759',
    500: '#04001e',
    950: '#000000',
  },
}
SCSS
$custom: #04001e;
$custom-light: #484759;
$custom-dark: #000000;
JSON
{
  "hex": "#04001e",
  "rgb": {
    "r": 4,
    "g": 0,
    "b": 30
  },
  "hsl": {
    "h": 248,
    "s": 100,
    "l": 5.882
  },
  "oklch": {
    "l": 0.11515,
    "c": 0.06951,
    "h": 280.3
  },
  "luminance": 0.0012
}

Semantic roles & 50–950 ramp

primary
#04001E
secondary
#5C6812
accent
#FF29E2
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000003
muted
#777778

Preview Lab

Preview with #04001E

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

Preview Lab → · Contrast checker → · Palette generator →

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