#04071A#04071A

#04071A is a very dark, muted blue. Relative luminance 0.003; OKLCH L 13.9% C 0.042 H 270.5°. Best body text is #FFFFFF at 19.99:1 contrast (WCAG AA passes).

Color values

HEX#04071A
RGBrgb(4, 7, 26)
HSLhsl(232, 73%, 6%)
HSVhsv(232, 85%, 10%)
CMYKcmyk(84.6%, 73.1%, 0%, 89.8%)
CIE-LABlab(2.28, 2.97, -10.50)
CIE-LCHlch(2.28, 10.91, 285.82°)
OKLaboklab(13.85% 0.0004 -0.0424)
OKLCHoklch(13.85% 0.042 270.5)
XYZxyz(0.3124, 0.2523, 1.0093)
Luminance0.0025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04071A #1A1704
analogous
#04121A #04071A #0C041A
triadic
#04071A #1A0407 #071A04
tetradic
#04071A #1A0412 #1A1704 #041A0C
square
#04071A #1A0412 #1A1704 #041A0C
split-complementary
#04071A #1A0C04 #121A04
monochromatic
#04071B #04071B #04071B #0C154F #142484

Accessibility & contrast

On white

19.99
#04071A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04071A
19.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04071A#FFFFFF#000000##FFFFFF
##04071A1.0019.991.0519.99
#FFFFFF19.991.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01091B
Deuteranopia (green-blind)
#00071A
Tritanopia (blue-blind)
#000B0F
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #04071a;
/* rgb */ color: rgb(4, 7, 26);
/* oklch */ color: oklch(13.9% 0.042 270.5);
Tailwind
colors: {
  custom: {
    50: '#484a56',
    500: '#04071a',
    950: '#000000',
  },
}
SCSS
$custom: #04071a;
$custom-light: #484a56;
$custom-dark: #000000;
JSON
{
  "hex": "#04071a",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 26
  },
  "hsl": {
    "h": 231.818,
    "s": 73.333,
    "l": 5.882
  },
  "oklch": {
    "l": 0.1385,
    "c": 0.0424,
    "h": 270.5
  },
  "luminance": 0.00252
}

Semantic roles & 50–950 ramp

primary
#04071A
secondary
#5C541E
accent
#D738F0
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #04071A

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

Preview Lab → · Contrast checker → · Palette generator →

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