#04043B#04043B

#04043B is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 17.3% C 0.101 H 269.1°. Best body text is #FFFFFF at 19.34:1 contrast (WCAG AA passes).

Color values

HEX#04043B
RGBrgb(4, 4, 59)
HSLhsl(240, 87%, 12%)
HSVhsv(240, 93%, 23%)
CMYKcmyk(93.2%, 93.2%, 0%, 76.9%)
CIE-LABlab(3.87, 19.45, -33.17)
CIE-LCHlch(3.87, 38.46, 300.39°)
OKLaboklab(17.29% -0.0015 -0.1012)
OKLCHoklch(17.29% 0.101 269.1)
XYZxyz(0.8826, 0.4283, 4.1730)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04043B #3B3B04
analogous
#04203B #04043B #20043B
triadic
#04043B #3B0404 #043B04
tetradic
#04043B #3B0420 #3B3B04 #043B20
square
#04043B #3B0420 #3B3B04 #043B20
split-complementary
#04043B #3B2004 #203B04
monochromatic
#02021D #02021D #04043B #080874 #0C0CAE

Accessibility & contrast

On white

19.34
#04043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#04043B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04043B
19.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04043B#FFFFFF#000000##FFFFFF
##04043B1.0019.341.0919.34
#FFFFFF19.341.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00113D
Deuteranopia (green-blind)
#000B3A
Tritanopia (blue-blind)
#001520
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #04043b;
/* rgb */ color: rgb(4, 4, 59);
/* oklch */ color: oklch(17.3% 0.101 269.1);
Tailwind
colors: {
  custom: {
    50: '#4f4772',
    500: '#04043b',
    950: '#000000',
  },
}
SCSS
$custom: #04043b;
$custom-light: #4f4772;
$custom-dark: #000000;
JSON
{
  "hex": "#04043b",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 240,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.17285,
    "c": 0.1012,
    "h": 269.1
  },
  "luminance": 0.00428
}

Semantic roles & 50–950 ramp

primary
#04043B
secondary
#7D7D1E
accent
#FD2AFD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020008
muted
#78777B

Preview Lab

Preview with #04043B

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

Preview Lab → · Contrast checker → · Palette generator →

#04043B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva