#171F5F#171F5F

#171F5F is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.113 H 271.4°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#171F5F
RGBrgb(23, 31, 95)
HSLhsl(233, 61%, 23%)
HSVhsv(233, 76%, 37%)
CMYKcmyk(75.8%, 67.4%, 0%, 62.7%)
CIE-LABlab(15.42, 20.94, -39.12)
CIE-LCHlch(15.42, 44.37, 298.15°)
OKLaboklab(27.92% 0.0028 -0.113)
OKLCHoklch(27.92% 0.113 271.4)
XYZxyz(2.9082, 1.9881, 11.0547)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F5F #5F5717
analogous
#17435F #171F5F #33175F
triadic
#171F5F #5F171F #1F5F17
tetradic
#171F5F #5F1743 #5F5717 #175F33
square
#171F5F #5F1743 #5F5717 #175F33
split-complementary
#171F5F #5F3317 #435F17
monochromatic
#060819 #0B0F2E #171F5F #232F90 #2F3FC2

Accessibility & contrast

On white

15.03
#171F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#171F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F5F
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F5F#FFFFFF#000000##FFFFFF
##171F5F1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171f5f;
/* rgb */ color: rgb(23, 31, 95);
/* oklch */ color: oklch(27.9% 0.113 271.4);
Tailwind
colors: {
  custom: {
    50: '#605a8d',
    500: '#171f5f',
    950: '#000000',
  },
}
SCSS
$custom: #171f5f;
$custom-light: #605a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#171f5f",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 233.333,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27924,
    "c": 0.113,
    "h": 271.4
  },
  "luminance": 0.01988
}

Semantic roles & 50–950 ramp

primary
#171F5F
secondary
#968C3C
accent
#D244E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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