#04173F#04173F

#04173F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.9% C 0.081 H 261.8°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#04173F
RGBrgb(4, 23, 63)
HSLhsl(221, 88%, 13%)
HSVhsv(221, 94%, 25%)
CMYKcmyk(93.7%, 63.5%, 0%, 75.3%)
CIE-LABlab(8.97, 10.50, -27.74)
CIE-LCHlch(8.97, 29.66, 290.73°)
OKLaboklab(21.89% -0.0115 -0.0801)
OKLCHoklch(21.89% 0.081 261.8)
XYZxyz(1.2533, 0.9973, 4.8281)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04173F #3F2C04
analogous
#04343F #04173F #0E043F
triadic
#04173F #3F0417 #173F04
tetradic
#04173F #3F0434 #3F2C04 #043F0E
square
#04173F #3F0434 #3F2C04 #043F0E
split-complementary
#04173F #3F0E04 #343F04
monochromatic
#020B1D #020B1D #04173F #082C79 #0B41B2

Accessibility & contrast

On white

17.51
#04173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#04173F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04173F
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04173F#FFFFFF#000000##FFFFFF
##04173F1.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)
#001C40
Deuteranopia (green-blind)
#00173E
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #04173f;
/* rgb */ color: rgb(4, 23, 63);
/* oklch */ color: oklch(21.9% 0.081 261.8);
Tailwind
colors: {
  custom: {
    50: '#505374',
    500: '#04173f',
    950: '#000000',
  },
}
SCSS
$custom: #04173f;
$custom-light: #505374;
$custom-dark: #000000;
JSON
{
  "hex": "#04173f",
  "rgb": {
    "r": 4,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 220.678,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21892,
    "c": 0.08095,
    "h": 261.8
  },
  "luminance": 0.00997
}

Semantic roles & 50–950 ramp

primary
#04173F
secondary
#80611E
accent
#BA2AFE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #04173F

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

Preview Lab → · Contrast checker → · Palette generator →

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