#04043F#04043F

#04043F is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.9% C 0.107 H 268.6°. Best body text is #FFFFFF at 19.19:1 contrast (WCAG AA passes).

Color values

HEX#04043F
RGBrgb(4, 4, 63)
HSLhsl(240, 88%, 13%)
HSVhsv(240, 94%, 25%)
CMYKcmyk(93.7%, 93.7%, 0%, 75.3%)
CIE-LABlab(4.26, 21.89, -35.43)
CIE-LCHlch(4.26, 41.65, 301.71°)
OKLaboklab(17.88% -0.0025 -0.1066)
OKLCHoklch(17.88% 0.107 268.6)
XYZxyz(0.9904, 0.4714, 4.7405)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04043F #3F3F04
analogous
#04213F #04043F #21043F
triadic
#04043F #3F0404 #043F04
tetradic
#04043F #3F0421 #3F3F04 #043F21
square
#04043F #3F0421 #3F3F04 #043F21
split-complementary
#04043F #3F2104 #213F04
monochromatic
#02021D #02021D #04043F #080879 #0B0BB2

Accessibility & contrast

On white

19.19
#04043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04043F
19.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04043F#FFFFFF#000000##FFFFFF
##04043F1.0019.191.0919.19
#FFFFFF19.191.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001241
Deuteranopia (green-blind)
#000C3E
Tritanopia (blue-blind)
#001722
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #04043f;
/* rgb */ color: rgb(4, 4, 63);
/* oklch */ color: oklch(17.9% 0.107 268.6);
Tailwind
colors: {
  custom: {
    50: '#514775',
    500: '#04043f',
    950: '#000000',
  },
}
SCSS
$custom: #04043f;
$custom-light: #514775;
$custom-dark: #000000;
JSON
{
  "hex": "#04043f",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 240,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.1788,
    "c": 0.10663,
    "h": 268.6
  },
  "luminance": 0.00472
}

Semantic roles & 50–950 ramp

primary
#04043F
secondary
#80801E
accent
#FE2AFE
background
#F4F4F7
surface
#E7E6ED
border
#C3C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #04043F

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

Preview Lab → · Contrast checker → · Palette generator →

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