#171F5D#171F5D

#171F5D is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.7% C 0.110 H 271.5°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#171F5D
RGBrgb(23, 31, 93)
HSLhsl(233, 60%, 23%)
HSVhsv(233, 75%, 36%)
CMYKcmyk(75.3%, 66.7%, 0%, 63.5%)
CIE-LABlab(15.23, 20.13, -38.10)
CIE-LCHlch(15.23, 43.09, 297.85°)
OKLaboklab(27.73% 0.0029 -0.11)
OKLCHoklch(27.73% 0.11 271.5)
XYZxyz(2.8185, 1.9522, 10.5821)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F5D #5D5517
analogous
#17425D #171F5D #32175D
triadic
#171F5D #5D171F #1F5D17
tetradic
#171F5D #5D1742 #5D5517 #175D32
square
#171F5D #5D1742 #5D5517 #175D32
split-complementary
#171F5D #5D3217 #425D17
monochromatic
#060819 #0B0F2C #171F5D #232F8E #2F40BF

Accessibility & contrast

On white

15.10
#171F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#171F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F5D
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F5D#FFFFFF#000000##FFFFFF
##171F5D1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171f5d;
/* rgb */ color: rgb(23, 31, 93);
/* oklch */ color: oklch(27.7% 0.110 271.5);
Tailwind
colors: {
  custom: {
    50: '#5f5a8c',
    500: '#171f5d',
    950: '#000000',
  },
}
SCSS
$custom: #171f5d;
$custom-light: #5f5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#171f5d",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 93
  },
  "hsl": {
    "h": 233.143,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27725,
    "c": 0.11002,
    "h": 271.5
  },
  "luminance": 0.01952
}

Semantic roles & 50–950 ramp

primary
#171F5D
secondary
#948A3C
accent
#D144E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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