#04173A#04173A

#04173A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.073 H 260.4°. Best body text is #FFFFFF at 17.66:1 contrast (WCAG AA passes).

Color values

HEX#04173A
RGBrgb(4, 23, 58)
HSLhsl(219, 87%, 12%)
HSVhsv(219, 93%, 23%)
CMYKcmyk(93.1%, 60.3%, 0%, 77.3%)
CIE-LABlab(8.52, 8.10, -24.90)
CIE-LCHlch(8.52, 26.19, 288.02°)
OKLaboklab(21.4% -0.0121 -0.0718)
OKLCHoklch(21.4% 0.073 260.4)
XYZxyz(1.1199, 0.9440, 4.1253)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04173A #3A2704
analogous
#04323A #04173A #0C043A
triadic
#04173A #3A0417 #173A04
tetradic
#04173A #3A0432 #3A2704 #043A0C
square
#04173A #3A0432 #3A2704 #043A0C
split-complementary
#04173A #3A0C04 #323A04
monochromatic
#020B1D #020B1D #04173A #082E73 #0C44AD

Accessibility & contrast

On white

17.66
#04173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04173A
17.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04173A#FFFFFF#000000##FFFFFF
##04173A1.0017.661.1917.66
#FFFFFF17.661.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021B3B
Deuteranopia (green-blind)
#001639
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #04173a;
/* rgb */ color: rgb(4, 23, 58);
/* oklch */ color: oklch(21.4% 0.073 260.4);
Tailwind
colors: {
  custom: {
    50: '#4e5370',
    500: '#04173a',
    950: '#000000',
  },
}
SCSS
$custom: #04173a;
$custom-light: #4e5370;
$custom-dark: #000000;
JSON
{
  "hex": "#04173a",
  "rgb": {
    "r": 4,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 218.889,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21404,
    "c": 0.07281,
    "h": 260.4
  },
  "luminance": 0.00944
}

Semantic roles & 50–950 ramp

primary
#04173A
secondary
#7C5B1E
accent
#B32BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #04173A

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

Preview Lab → · Contrast checker → · Palette generator →

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