#171F6E#171F6E

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

Color values

HEX#171F6E
RGBrgb(23, 31, 110)
HSLhsl(234, 65%, 26%)
HSVhsv(234, 79%, 43%)
CMYKcmyk(79.1%, 71.8%, 0%, 56.9%)
CIE-LABlab(16.93, 26.86, -46.51)
CIE-LCHlch(16.93, 53.71, 300.00°)
OKLaboklab(29.48% 0.0015 -0.1346)
OKLCHoklch(29.48% 0.135 270.7)
XYZxyz(3.6568, 2.2875, 14.9976)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F6E #6E6617
analogous
#174A6E #171F6E #3A176E
triadic
#171F6E #6E171F #1F6E17
tetradic
#171F6E #6E174A #6E6617 #176E3A
square
#171F6E #6E174A #6E6617 #176E3A
split-complementary
#171F6E #6E3A17 #4A6E17
monochromatic
#050719 #0C113B #171F6E #222DA1 #2C3CD3

Accessibility & contrast

On white

14.41
#171F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#171F6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F6E
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F6E#FFFFFF#000000##FFFFFF
##171F6E1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171f6e;
/* rgb */ color: rgb(23, 31, 110);
/* oklch */ color: oklch(29.5% 0.135 270.7);
Tailwind
colors: {
  custom: {
    50: '#645b98',
    500: '#171f6e',
    950: '#000000',
  },
}
SCSS
$custom: #171f6e;
$custom-light: #645b98;
$custom-dark: #000000;
JSON
{
  "hex": "#171f6e",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 110
  },
  "hsl": {
    "h": 234.483,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29482,
    "c": 0.13461,
    "h": 270.7
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#171F6E
secondary
#A49A3D
accent
#D93FE8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #171F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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