#04173B#04173B

#04173B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.5% C 0.074 H 260.7°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#04173B
RGBrgb(4, 23, 59)
HSLhsl(219, 87%, 12%)
HSVhsv(219, 93%, 23%)
CMYKcmyk(93.2%, 61%, 0%, 76.9%)
CIE-LABlab(8.60, 8.59, -25.48)
CIE-LCHlch(8.60, 26.89, 288.63°)
OKLaboklab(21.5% -0.012 -0.0735)
OKLCHoklch(21.5% 0.074 260.7)
XYZxyz(1.1456, 0.9542, 4.2606)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04173B #3B2804
analogous
#04333B #04173B #0D043B
triadic
#04173B #3B0417 #173B04
tetradic
#04173B #3B0433 #3B2804 #043B0D
square
#04173B #3B0433 #3B2804 #043B0D
split-complementary
#04173B #3B0D04 #333B04
monochromatic
#020B1D #020B1D #04173B #082D74 #0C44AE

Accessibility & contrast

On white

17.64
#04173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#04173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04173B
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04173B#FFFFFF#000000##FFFFFF
##04173B1.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011B3C
Deuteranopia (green-blind)
#00163A
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #04173b;
/* rgb */ color: rgb(4, 23, 59);
/* oklch */ color: oklch(21.5% 0.074 260.7);
Tailwind
colors: {
  custom: {
    50: '#4f5371',
    500: '#04173b',
    950: '#000000',
  },
}
SCSS
$custom: #04173b;
$custom-light: #4f5371;
$custom-dark: #000000;
JSON
{
  "hex": "#04173b",
  "rgb": {
    "r": 4,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 219.273,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21499,
    "c": 0.07446,
    "h": 260.7
  },
  "luminance": 0.00954
}

Semantic roles & 50–950 ramp

primary
#04173B
secondary
#7D5C1E
accent
#B52AFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020208
muted
#78787B

Preview Lab

Preview with #04173B

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

Preview Lab → · Contrast checker → · Palette generator →

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