#04071C#04071C

#04071C is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.1% C 0.046 H 270.7°. Best body text is #FFFFFF at 19.95:1 contrast (WCAG AA passes).

Color values

HEX#04071C
RGBrgb(4, 7, 28)
HSLhsl(233, 75%, 6%)
HSVhsv(233, 86%, 11%)
CMYKcmyk(85.7%, 75%, 0%, 89%)
CIE-LABlab(2.36, 3.56, -11.98)
CIE-LCHlch(2.36, 12.50, 286.56°)
OKLaboklab(14.05% 0.0006 -0.0462)
OKLCHoklch(14.05% 0.046 270.7)
XYZxyz(0.3356, 0.2616, 1.1312)
Luminance0.0026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04071C #1C1904
analogous
#04131C #04071C #0D041C
triadic
#04071C #1C0407 #071C04
tetradic
#04071C #1C0413 #1C1904 #041C0D
square
#04071C #1C0413 #1C1904 #041C0D
split-complementary
#04071C #1C0D04 #131C04
monochromatic
#04071B #04071B #04071C #0C1452 #132287

Accessibility & contrast

On white

19.95
#04071C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04071C
19.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04071C#FFFFFF#000000##FFFFFF
##04071C1.0019.951.0519.95
#FFFFFF19.951.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04071c;
/* rgb */ color: rgb(4, 7, 28);
/* oklch */ color: oklch(14.1% 0.046 270.7);
Tailwind
colors: {
  custom: {
    50: '#484a58',
    500: '#04071c',
    950: '#000000',
  },
}
SCSS
$custom: #04071c;
$custom-light: #484a58;
$custom-dark: #000000;
JSON
{
  "hex": "#04071c",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 28
  },
  "hsl": {
    "h": 232.5,
    "s": 75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.14054,
    "c": 0.04622,
    "h": 270.7
  },
  "luminance": 0.00262
}

Semantic roles & 50–950 ramp

primary
#04071C
secondary
#5E561D
accent
#DA36F2
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #04071C

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

Preview Lab → · Contrast checker → · Palette generator →

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