#171D6E#171D6E

#171D6E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.1% C 0.137 H 271.1°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#171D6E
RGBrgb(23, 29, 110)
HSLhsl(236, 65%, 26%)
HSVhsv(236, 79%, 43%)
CMYKcmyk(79.1%, 73.6%, 0%, 56.9%)
CIE-LABlab(16.44, 28.20, -47.33)
CIE-LCHlch(16.44, 55.09, 300.79°)
OKLaboklab(29.13% 0.0027 -0.137)
OKLCHoklch(29.13% 0.137 271.1)
XYZxyz(3.6062, 2.1863, 14.9808)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D6E #6E6817
analogous
#17486E #171D6E #3C176E
triadic
#171D6E #6E171D #1D6E17
tetradic
#171D6E #6E1748 #6E6817 #176E3C
square
#171D6E #6E1748 #6E6817 #176E3C
split-complementary
#171D6E #6E3C17 #486E17
monochromatic
#050719 #0C103B #171D6E #222AA1 #2C38D3

Accessibility & contrast

On white

14.61
#171D6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#171D6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D6E
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D6E#FFFFFF#000000##FFFFFF
##171D6E1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003443
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171d6e;
/* rgb */ color: rgb(23, 29, 110);
/* oklch */ color: oklch(29.1% 0.137 271.1);
Tailwind
colors: {
  custom: {
    50: '#645999',
    500: '#171d6e',
    950: '#000000',
  },
}
SCSS
$custom: #171d6e;
$custom-light: #645999;
$custom-dark: #000000;
JSON
{
  "hex": "#171d6e",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 110
  },
  "hsl": {
    "h": 235.862,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29126,
    "c": 0.137,
    "h": 271.1
  },
  "luminance": 0.02187
}

Semantic roles & 50–950 ramp

primary
#171D6E
secondary
#A49D3D
accent
#DD3FE8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171D6E

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

Preview Lab → · Contrast checker → · Palette generator →

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