#04011D#04011D

#04011D is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 11.8% C 0.064 H 279.8°. Best body text is #FFFFFF at 20.44:1 contrast (WCAG AA passes).

Color values

HEX#04011D
RGBrgb(4, 1, 29)
HSLhsl(246, 93%, 6%)
HSVhsv(246, 97%, 11%)
CMYKcmyk(86.2%, 96.6%, 0%, 88.6%)
CIE-LABlab(1.23, 6.27, -14.47)
CIE-LCHlch(1.23, 15.77, 293.44°)
OKLaboklab(11.84% 0.011 -0.0635)
OKLCHoklch(11.84% 0.064 279.8)
XYZxyz(0.2826, 0.1362, 1.1736)
Luminance0.0014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04011D #1A1D01
analogous
#010C1D #04011D #12011D
triadic
#04011D #1D0401 #011D04
tetradic
#04011D #1D010C #1A1D01 #011D12
square
#04011D #1D010C #1A1D01 #011D12
split-complementary
#04011D #1D1201 #0C1D01
monochromatic
#04011E #04011E #04011E #0C0358 #140593

Accessibility & contrast

On white

20.44
#04011D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04011D
20.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04011D#FFFFFF#000000##FFFFFF
##04011D1.0020.441.0320.44
#FFFFFF20.441.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00051E
Deuteranopia (green-blind)
#00041C
Tritanopia (blue-blind)
#00070D
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #04011d;
/* rgb */ color: rgb(4, 1, 29);
/* oklch */ color: oklch(11.8% 0.064 279.8);
Tailwind
colors: {
  custom: {
    50: '#484758',
    500: '#04011d',
    950: '#000000',
  },
}
SCSS
$custom: #04011d;
$custom-light: #484758;
$custom-dark: #000000;
JSON
{
  "hex": "#04011d",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 29
  },
  "hsl": {
    "h": 246.429,
    "s": 93.333,
    "l": 5.882
  },
  "oklch": {
    "l": 0.11837,
    "c": 0.06447,
    "h": 279.8
  },
  "luminance": 0.00136
}

Semantic roles & 50–950 ramp

primary
#04011D
secondary
#5C6515
accent
#FF29E8
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000003
muted
#777778

Preview Lab

Preview with #04011D

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

Preview Lab → · Contrast checker → · Palette generator →

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