#04183C#04183C

#04183C is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.9% C 0.075 H 260.2°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#04183C
RGBrgb(4, 24, 60)
HSLhsl(219, 88%, 13%)
HSVhsv(219, 93%, 24%)
CMYKcmyk(93.3%, 60%, 0%, 76.5%)
CIE-LABlab(9.03, 8.26, -25.50)
CIE-LCHlch(9.03, 26.80, 287.95°)
OKLaboklab(21.86% -0.0127 -0.0735)
OKLCHoklch(21.86% 0.075 260.2)
XYZxyz(1.1920, 1.0052, 4.4053)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04183C #3C2804
analogous
#04343C #04183C #0C043C
triadic
#04183C #3C0418 #183C04
tetradic
#04183C #3C0434 #3C2804 #043C0C
square
#04183C #3C0434 #3C2804 #043C0C
split-complementary
#04183C #3C0C04 #343C04
monochromatic
#020B1D #020B1D #04183C #082F75 #0C46AF

Accessibility & contrast

On white

17.49
#04183C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04183C
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04183C#FFFFFF#000000##FFFFFF
##04183C1.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021C3D
Deuteranopia (green-blind)
#00173B
Tritanopia (blue-blind)
#002127
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #04183c;
/* rgb */ color: rgb(4, 24, 60);
/* oklch */ color: oklch(21.9% 0.075 260.2);
Tailwind
colors: {
  custom: {
    50: '#4f5472',
    500: '#04183c',
    950: '#000000',
  },
}
SCSS
$custom: #04183c;
$custom-light: #4f5472;
$custom-dark: #000000;
JSON
{
  "hex": "#04183c",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 60
  },
  "hsl": {
    "h": 218.571,
    "s": 87.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21855,
    "c": 0.0746,
    "h": 260.2
  },
  "luminance": 0.01005
}

Semantic roles & 50–950 ramp

primary
#04183C
secondary
#7E5C1E
accent
#B22AFE
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020208
muted
#78787B

Preview Lab

Preview with #04183C

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

Preview Lab → · Contrast checker → · Palette generator →

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