#04091F#04091F

#04091F is a very dark, muted blue. Relative luminance 0.003; OKLCH L 15.0% C 0.048 H 267.7°. Best body text is #FFFFFF at 19.74:1 contrast (WCAG AA passes).

Color values

HEX#04091F
RGBrgb(4, 9, 31)
HSLhsl(229, 77%, 7%)
HSVhsv(229, 87%, 12%)
CMYKcmyk(87.1%, 71%, 0%, 87.8%)
CIE-LABlab(2.89, 3.72, -13.57)
CIE-LCHlch(2.89, 14.07, 285.32°)
OKLaboklab(14.98% -0.0019 -0.0479)
OKLCHoklch(14.98% 0.048 267.7)
XYZxyz(0.3950, 0.3201, 1.3370)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04091F #1F1A04
analogous
#04171F #04091F #0D041F
triadic
#04091F #1F0409 #091F04
tetradic
#04091F #1F0417 #1F1A04 #041F0D
square
#04091F #1F0417 #1F1A04 #041F0D
split-complementary
#04091F #1F0D04 #171F04
monochromatic
#03081B #03081B #04091F #0B1955 #12288B

Accessibility & contrast

On white

19.74
#04091F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04091F
19.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04091F#FFFFFF#000000##FFFFFF
##04091F1.0019.741.0619.74
#FFFFFF19.741.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010C20
Deuteranopia (green-blind)
#00091F
Tritanopia (blue-blind)
#000E12
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #04091f;
/* rgb */ color: rgb(4, 9, 31);
/* oklch */ color: oklch(15.0% 0.048 267.7);
Tailwind
colors: {
  custom: {
    50: '#484b5a',
    500: '#04091f',
    950: '#000000',
  },
}
SCSS
$custom: #04091f;
$custom-light: #484b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#04091f",
  "rgb": {
    "r": 4,
    "g": 9,
    "b": 31
  },
  "hsl": {
    "h": 228.889,
    "s": 77.143,
    "l": 6.863
  },
  "oklch": {
    "l": 0.14984,
    "c": 0.04793,
    "h": 267.7
  },
  "luminance": 0.0032
}

Semantic roles & 50–950 ramp

primary
#04091F
secondary
#62551D
accent
#D034F4
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #04091F

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

Preview Lab → · Contrast checker → · Palette generator →

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