#04031E#04031E

#04031E is a very dark, muted blue. Relative luminance 0.002; OKLCH L 12.8% C 0.060 H 276.7°. Best body text is #FFFFFF at 20.25:1 contrast (WCAG AA passes).

Color values

HEX#04031E
RGBrgb(4, 3, 30)
HSLhsl(242, 82%, 6%)
HSVhsv(242, 90%, 12%)
CMYKcmyk(86.7%, 90%, 0%, 88.2%)
CIE-LABlab(1.67, 5.79, -14.62)
CIE-LCHlch(1.67, 15.73, 291.62°)
OKLaboklab(12.84% 0.0069 -0.0593)
OKLCHoklch(12.84% 0.06 276.7)
XYZxyz(0.3169, 0.1846, 1.2470)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04031E #1D1E03
analogous
#03101E #04031E #12031E
triadic
#04031E #1E0403 #031E04
tetradic
#04031E #1E0310 #1D1E03 #031E12
square
#04031E #1E0310 #1D1E03 #031E12
split-complementary
#04031E #1E1203 #101E03
monochromatic
#04031C #04031C #04031E #0B0956 #130E8D

Accessibility & contrast

On white

20.25
#04031E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#04031E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04031E
20.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04031E#FFFFFF#000000##FFFFFF
##04031E1.0020.251.0420.25
#FFFFFF20.251.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071F
Deuteranopia (green-blind)
#00051D
Tritanopia (blue-blind)
#00090E
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #04031e;
/* rgb */ color: rgb(4, 3, 30);
/* oklch */ color: oklch(12.8% 0.060 276.7);
Tailwind
colors: {
  custom: {
    50: '#484859',
    500: '#04031e',
    950: '#000000',
  },
}
SCSS
$custom: #04031e;
$custom-light: #484859;
$custom-dark: #000000;
JSON
{
  "hex": "#04031e",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 30
  },
  "hsl": {
    "h": 242.222,
    "s": 81.818,
    "l": 6.471
  },
  "oklch": {
    "l": 0.12839,
    "c": 0.05975,
    "h": 276.7
  },
  "luminance": 0.00185
}

Semantic roles & 50–950 ramp

primary
#04031E
secondary
#5F621B
accent
#F830F1
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000003
muted
#777778

Preview Lab

Preview with #04031E

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

Preview Lab → · Contrast checker → · Palette generator →

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