#04183A#04183A

#04183A is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.7% C 0.071 H 259.5°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#04183A
RGBrgb(4, 24, 58)
HSLhsl(218, 87%, 12%)
HSVhsv(218, 93%, 23%)
CMYKcmyk(93.1%, 58.6%, 0%, 77.3%)
CIE-LABlab(8.86, 7.30, -24.35)
CIE-LCHlch(8.86, 25.42, 286.68°)
OKLaboklab(21.67% -0.013 -0.0701)
OKLCHoklch(21.67% 0.071 259.5)
XYZxyz(1.1401, 0.9844, 4.1321)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04183A #3A2604
analogous
#04333A #04183A #0B043A
triadic
#04183A #3A0418 #183A04
tetradic
#04183A #3A0433 #3A2604 #043A0B
square
#04183A #3A0433 #3A2604 #043A0B
split-complementary
#04183A #3A0B04 #333A04
monochromatic
#020C1D #020C1D #04183A #083073 #0C47AD

Accessibility & contrast

On white

17.54
#04183A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04183A
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04183A#FFFFFF#000000##FFFFFF
##04183A1.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041C3B
Deuteranopia (green-blind)
#001739
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #04183a;
/* rgb */ color: rgb(4, 24, 58);
/* oklch */ color: oklch(21.7% 0.071 259.5);
Tailwind
colors: {
  custom: {
    50: '#4e5470',
    500: '#04183a',
    950: '#000000',
  },
}
SCSS
$custom: #04183a;
$custom-light: #4e5470;
$custom-dark: #000000;
JSON
{
  "hex": "#04183a",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 58
  },
  "hsl": {
    "h": 217.778,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21668,
    "c": 0.07132,
    "h": 259.5
  },
  "luminance": 0.00985
}

Semantic roles & 50–950 ramp

primary
#04183A
secondary
#7C591E
accent
#AF2BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #04183A

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

Preview Lab → · Contrast checker → · Palette generator →

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