#171E4F#171E4F

#171E4F is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.2% C 0.090 H 272.5°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#171E4F
RGBrgb(23, 30, 79)
HSLhsl(233, 55%, 20%)
HSVhsv(233, 71%, 31%)
CMYKcmyk(70.9%, 62%, 0%, 69%)
CIE-LABlab(13.68, 15.17, -31.18)
CIE-LCHlch(13.68, 34.68, 295.95°)
OKLaboklab(26.18% 0.0039 -0.0897)
OKLCHoklch(26.18% 0.09 272.5)
XYZxyz(2.2284, 1.6750, 7.6015)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E4F #4F4817
analogous
#173A4F #171E4F #2C174F
triadic
#171E4F #4F171E #1E4F17
tetradic
#171E4F #4F173A #4F4817 #174F2C
square
#171E4F #4F173A #4F4817 #174F2C
split-complementary
#171E4F #4F2C17 #3A4F17
monochromatic
#070918 #090C20 #171E4F #25307E #3342AE

Accessibility & contrast

On white

15.73
#171E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#171E4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E4F
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E4F#FFFFFF#000000##FFFFFF
##171E4F1.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171e4f;
/* rgb */ color: rgb(23, 30, 79);
/* oklch */ color: oklch(26.2% 0.090 272.5);
Tailwind
colors: {
  custom: {
    50: '#5c5981',
    500: '#171e4f',
    950: '#000000',
  },
}
SCSS
$custom: #171e4f;
$custom-light: #5c5981;
$custom-dark: #000000;
JSON
{
  "hex": "#171e4f",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 79
  },
  "hsl": {
    "h": 232.5,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.26176,
    "c": 0.08974,
    "h": 272.5
  },
  "luminance": 0.01675
}

Semantic roles & 50–950 ramp

primary
#171E4F
secondary
#867D3C
accent
#CC4ADE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171E4F

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

Preview Lab → · Contrast checker → · Palette generator →

#171E4F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva