#171F6D#171F6D

#171F6D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.4% C 0.133 H 270.7°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#171F6D
RGBrgb(23, 31, 109)
HSLhsl(234, 65%, 26%)
HSVhsv(234, 79%, 43%)
CMYKcmyk(78.9%, 71.6%, 0%, 57.3%)
CIE-LABlab(16.82, 26.47, -46.03)
CIE-LCHlch(16.82, 53.10, 299.90°)
OKLaboklab(29.38% 0.0016 -0.1332)
OKLCHoklch(29.38% 0.133 270.7)
XYZxyz(3.6027, 2.2659, 14.7125)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F6D #6D6517
analogous
#174A6D #171F6D #3A176D
triadic
#171F6D #6D171F #1F6D17
tetradic
#171F6D #6D174A #6D6517 #176D3A
square
#171F6D #6D174A #6D6517 #176D3A
split-complementary
#171F6D #6D3A17 #4A6D17
monochromatic
#050719 #0C113A #171F6D #222DA0 #2C3CD2

Accessibility & contrast

On white

14.45
#171F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#171F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F6D
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F6D#FFFFFF#000000##FFFFFF
##171F6D1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#00256C
Tritanopia (blue-blind)
#003443
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171f6d;
/* rgb */ color: rgb(23, 31, 109);
/* oklch */ color: oklch(29.4% 0.133 270.7);
Tailwind
colors: {
  custom: {
    50: '#645b98',
    500: '#171f6d',
    950: '#000000',
  },
}
SCSS
$custom: #171f6d;
$custom-light: #645b98;
$custom-dark: #000000;
JSON
{
  "hex": "#171f6d",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 109
  },
  "hsl": {
    "h": 234.419,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29375,
    "c": 0.13321,
    "h": 270.7
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#171F6D
secondary
#A3993D
accent
#D840E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #171F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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