#04183B#04183B

#04183B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.8% C 0.073 H 259.9°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#04183B
RGBrgb(4, 24, 59)
HSLhsl(218, 87%, 12%)
HSVhsv(218, 93%, 23%)
CMYKcmyk(93.2%, 59.3%, 0%, 76.9%)
CIE-LABlab(8.95, 7.78, -24.92)
CIE-LCHlch(8.95, 26.11, 287.33°)
OKLaboklab(21.76% -0.0128 -0.0718)
OKLCHoklch(21.76% 0.073 259.9)
XYZxyz(1.1658, 0.9947, 4.2674)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04183B #3B2704
analogous
#04343B #04183B #0C043B
triadic
#04183B #3B0418 #183B04
tetradic
#04183B #3B0434 #3B2704 #043B0C
square
#04183B #3B0434 #3B2704 #043B0C
split-complementary
#04183B #3B0C04 #343B04
monochromatic
#020C1D #020C1D #04183B #082F74 #0C47AE

Accessibility & contrast

On white

17.51
#04183B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#04183B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04183B
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04183B#FFFFFF#000000##FFFFFF
##04183B1.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031C3C
Deuteranopia (green-blind)
#00173A
Tritanopia (blue-blind)
#002126
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #04183b;
/* rgb */ color: rgb(4, 24, 59);
/* oklch */ color: oklch(21.8% 0.073 259.9);
Tailwind
colors: {
  custom: {
    50: '#4f5471',
    500: '#04183b',
    950: '#000000',
  },
}
SCSS
$custom: #04183b;
$custom-light: #4f5471;
$custom-dark: #000000;
JSON
{
  "hex": "#04183b",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 59
  },
  "hsl": {
    "h": 218.182,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21761,
    "c": 0.07296,
    "h": 259.9
  },
  "luminance": 0.00995
}

Semantic roles & 50–950 ramp

primary
#04183B
secondary
#7D5A1E
accent
#B12AFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #04183B

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

Preview Lab → · Contrast checker → · Palette generator →

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