#171F5C#171F5C

#171F5C is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.6% C 0.109 H 271.5°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#171F5C
RGBrgb(23, 31, 92)
HSLhsl(233, 60%, 23%)
HSVhsv(233, 75%, 36%)
CMYKcmyk(75%, 66.3%, 0%, 63.9%)
CIE-LABlab(15.14, 19.73, -37.59)
CIE-LCHlch(15.14, 42.45, 297.69°)
OKLaboklab(27.63% 0.0029 -0.1085)
OKLCHoklch(27.63% 0.109 271.5)
XYZxyz(2.7744, 1.9346, 10.3503)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F5C #5C5417
analogous
#17425C #171F5C #31175C
triadic
#171F5C #5C171F #1F5C17
tetradic
#171F5C #5C1742 #5C5417 #175C31
square
#171F5C #5C1742 #5C5417 #175C31
split-complementary
#171F5C #5C3117 #425C17
monochromatic
#060818 #0B0F2B #171F5C #232F8D #2F40BE

Accessibility & contrast

On white

15.14
#171F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F5C
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F5C#FFFFFF#000000##FFFFFF
##171F5C1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171f5c;
/* rgb */ color: rgb(23, 31, 92);
/* oklch */ color: oklch(27.6% 0.109 271.5);
Tailwind
colors: {
  custom: {
    50: '#5f5a8b',
    500: '#171f5c',
    950: '#000000',
  },
}
SCSS
$custom: #171f5c;
$custom-light: #5f5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#171f5c",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 233.043,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27626,
    "c": 0.10851,
    "h": 271.5
  },
  "luminance": 0.01935
}

Semantic roles & 50–950 ramp

primary
#171F5C
secondary
#93893C
accent
#D145E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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