#04071F#04071F

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

Color values

HEX#04071F
RGBrgb(4, 7, 31)
HSLhsl(233, 77%, 7%)
HSVhsv(233, 87%, 12%)
CMYKcmyk(87.1%, 77.4%, 0%, 87.8%)
CIE-LABlab(2.50, 4.52, -14.16)
CIE-LCHlch(2.50, 14.87, 287.70°)
OKLaboklab(14.37% 0.0007 -0.0518)
OKLCHoklch(14.37% 0.052 270.8)
XYZxyz(0.3733, 0.2767, 1.3298)
Luminance0.0028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04071F #1F1C04
analogous
#04151F #04071F #0F041F
triadic
#04071F #1F0407 #071F04
tetradic
#04071F #1F0415 #1F1C04 #041F0F
square
#04071F #1F0415 #1F1C04 #041F0F
split-complementary
#04071F #1F0F04 #151F04
monochromatic
#03061B #03061B #04071F #0B1355 #121F8B

Accessibility & contrast

On white

19.90
#04071F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#04071F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04071F
19.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04071F#FFFFFF#000000##FFFFFF
##04071F1.0019.901.0619.90
#FFFFFF19.901.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A20
Deuteranopia (green-blind)
#00081F
Tritanopia (blue-blind)
#000D11
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #04071f;
/* rgb */ color: rgb(4, 7, 31);
/* oklch */ color: oklch(14.4% 0.052 270.8);
Tailwind
colors: {
  custom: {
    50: '#484a5a',
    500: '#04071f',
    950: '#000000',
  },
}
SCSS
$custom: #04071f;
$custom-light: #484a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#04071f",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 31
  },
  "hsl": {
    "h": 233.333,
    "s": 77.143,
    "l": 6.863
  },
  "oklch": {
    "l": 0.14375,
    "c": 0.05181,
    "h": 270.8
  },
  "luminance": 0.00277
}

Semantic roles & 50–950 ramp

primary
#04071F
secondary
#625A1D
accent
#DE34F4
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #04071F

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

Preview Lab → · Contrast checker → · Palette generator →

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