#04011E#04011E

#04011E is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 12.0% C 0.066 H 279.2°. Best body text is #FFFFFF at 20.42:1 contrast (WCAG AA passes).

Color values

HEX#04011E
RGBrgb(4, 1, 30)
HSLhsl(246, 94%, 6%)
HSVhsv(246, 97%, 12%)
CMYKcmyk(86.7%, 96.7%, 0%, 88.2%)
CIE-LABlab(1.28, 6.59, -15.21)
CIE-LCHlch(1.28, 16.58, 293.44°)
OKLaboklab(11.99% 0.0105 -0.0651)
OKLCHoklch(11.99% 0.066 279.2)
XYZxyz(0.2952, 0.1412, 1.2397)
Luminance0.0014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04011E #1B1E01
analogous
#010C1E #04011E #12011E
triadic
#04011E #1E0401 #011E04
tetradic
#04011E #1E010C #1B1E01 #011E12
square
#04011E #1E010C #1B1E01 #011E12
split-complementary
#04011E #1E1201 #0C1E01
monochromatic
#04011E #04011E #04011E #0C0359 #140594

Accessibility & contrast

On white

20.42
#04011E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#04011E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04011E
20.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04011E#FFFFFF#000000##FFFFFF
##04011E1.0020.421.0320.42
#FFFFFF20.421.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00051F
Deuteranopia (green-blind)
#00041D
Tritanopia (blue-blind)
#00070D
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #04011e;
/* rgb */ color: rgb(4, 1, 30);
/* oklch */ color: oklch(12.0% 0.066 279.2);
Tailwind
colors: {
  custom: {
    50: '#484759',
    500: '#04011e',
    950: '#000000',
  },
}
SCSS
$custom: #04011e;
$custom-light: #484759;
$custom-dark: #000000;
JSON
{
  "hex": "#04011e",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 30
  },
  "hsl": {
    "h": 246.207,
    "s": 93.548,
    "l": 6.078
  },
  "oklch": {
    "l": 0.11989,
    "c": 0.06596,
    "h": 279.2
  },
  "luminance": 0.00141
}

Semantic roles & 50–950 ramp

primary
#04011E
secondary
#5D6615
accent
#FF29E9
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000003
muted
#777778

Preview Lab

Preview with #04011E

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

Preview Lab → · Contrast checker → · Palette generator →

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