#04071E#04071E

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

Color values

HEX#04071E
RGBrgb(4, 7, 30)
HSLhsl(233, 76%, 7%)
HSVhsv(233, 87%, 12%)
CMYKcmyk(86.7%, 76.7%, 0%, 88.2%)
CIE-LABlab(2.45, 4.19, -13.44)
CIE-LCHlch(2.45, 14.08, 287.31°)
OKLaboklab(14.27% 0.0007 -0.05)
OKLCHoklch(14.27% 0.05 270.8)
XYZxyz(0.3603, 0.2715, 1.2615)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04071E #1E1B04
analogous
#04141E #04071E #0E041E
triadic
#04071E #1E0407 #071E04
tetradic
#04071E #1E0414 #1E1B04 #041E0E
square
#04071E #1E0414 #1E1B04 #041E0E
split-complementary
#04071E #1E0E04 #141E04
monochromatic
#04061B #04061B #04071E #0B1454 #12208A

Accessibility & contrast

On white

19.92
#04071E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04071E
19.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04071E#FFFFFF#000000##FFFFFF
##04071E1.0019.921.0519.92
#FFFFFF19.921.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A1F
Deuteranopia (green-blind)
#00081E
Tritanopia (blue-blind)
#000C11
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #04071e;
/* rgb */ color: rgb(4, 7, 30);
/* oklch */ color: oklch(14.3% 0.050 270.8);
Tailwind
colors: {
  custom: {
    50: '#484a59',
    500: '#04071e',
    950: '#000000',
  },
}
SCSS
$custom: #04071e;
$custom-light: #484a59;
$custom-dark: #000000;
JSON
{
  "hex": "#04071e",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 30
  },
  "hsl": {
    "h": 233.077,
    "s": 76.471,
    "l": 6.667
  },
  "oklch": {
    "l": 0.14266,
    "c": 0.04996,
    "h": 270.8
  },
  "luminance": 0.00272
}

Semantic roles & 50–950 ramp

primary
#04071E
secondary
#61591D
accent
#DD35F3
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #04071E

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

Preview Lab → · Contrast checker → · Palette generator →

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