#04071D#04071D

#04071D is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.2% C 0.048 H 270.8°. Best body text is #FFFFFF at 19.94:1 contrast (WCAG AA passes).

Color values

HEX#04071D
RGBrgb(4, 7, 29)
HSLhsl(233, 76%, 6%)
HSVhsv(233, 86%, 11%)
CMYKcmyk(86.2%, 75.9%, 0%, 88.6%)
CIE-LABlab(2.41, 3.87, -12.71)
CIE-LCHlch(2.41, 13.29, 286.93°)
OKLaboklab(14.16% 0.0006 -0.0481)
OKLCHoklch(14.16% 0.048 270.8)
XYZxyz(0.3477, 0.2664, 1.1953)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04071D #1D1A04
analogous
#04141D #04071D #0E041D
triadic
#04071D #1D0407 #071D04
tetradic
#04071D #1D0414 #1D1A04 #041D0E
square
#04071D #1D0414 #1D1A04 #041D0E
split-complementary
#04071D #1D0E04 #141D04
monochromatic
#04061B #04061B #04071D #0B1453 #132189

Accessibility & contrast

On white

19.94
#04071D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#04071D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04071D
19.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04071D#FFFFFF#000000##FFFFFF
##04071D1.0019.941.0519.94
#FFFFFF19.941.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A1E
Deuteranopia (green-blind)
#00081D
Tritanopia (blue-blind)
#000C10
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #04071d;
/* rgb */ color: rgb(4, 7, 29);
/* oklch */ color: oklch(14.2% 0.048 270.8);
Tailwind
colors: {
  custom: {
    50: '#484a58',
    500: '#04071d',
    950: '#000000',
  },
}
SCSS
$custom: #04071d;
$custom-light: #484a58;
$custom-dark: #000000;
JSON
{
  "hex": "#04071d",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 29
  },
  "hsl": {
    "h": 232.8,
    "s": 75.758,
    "l": 6.471
  },
  "oklch": {
    "l": 0.14159,
    "c": 0.0481,
    "h": 270.8
  },
  "luminance": 0.00266
}

Semantic roles & 50–950 ramp

primary
#04071D
secondary
#5F581D
accent
#DC35F2
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #04071D

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

Preview Lab → · Contrast checker → · Palette generator →

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