#04183F#04183F

#04183F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.1% C 0.079 H 261.1°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#04183F
RGBrgb(4, 24, 63)
HSLhsl(220, 88%, 13%)
HSVhsv(220, 94%, 25%)
CMYKcmyk(93.7%, 61.9%, 0%, 75.3%)
CIE-LABlab(9.30, 9.70, -27.20)
CIE-LCHlch(9.30, 28.87, 289.62°)
OKLaboklab(22.14% -0.0123 -0.0785)
OKLCHoklch(22.14% 0.079 261.1)
XYZxyz(1.2736, 1.0378, 4.8349)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04183F #3F2B04
analogous
#04353F #04183F #0D043F
triadic
#04183F #3F0418 #183F04
tetradic
#04183F #3F0435 #3F2B04 #043F0D
square
#04183F #3F0435 #3F2B04 #043F0D
split-complementary
#04183F #3F0D04 #353F04
monochromatic
#020B1D #020B1D #04183F #082E79 #0B44B2

Accessibility & contrast

On white

17.39
#04183F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#04183F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04183F
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04183F#FFFFFF#000000##FFFFFF
##04183F1.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#00173E
Tritanopia (blue-blind)
#002228
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #04183f;
/* rgb */ color: rgb(4, 24, 63);
/* oklch */ color: oklch(22.1% 0.079 261.1);
Tailwind
colors: {
  custom: {
    50: '#505474',
    500: '#04183f',
    950: '#000000',
  },
}
SCSS
$custom: #04183f;
$custom-light: #505474;
$custom-dark: #000000;
JSON
{
  "hex": "#04183f",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 63
  },
  "hsl": {
    "h": 219.661,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22144,
    "c": 0.07947,
    "h": 261.1
  },
  "luminance": 0.01038
}

Semantic roles & 50–950 ramp

primary
#04183F
secondary
#805F1E
accent
#B62AFE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #04183F

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

Preview Lab → · Contrast checker → · Palette generator →

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