#171C6E#171C6E

#171C6E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.138 H 271.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#171C6E
RGBrgb(23, 28, 110)
HSLhsl(237, 65%, 26%)
HSVhsv(237, 79%, 43%)
CMYKcmyk(79.1%, 74.5%, 0%, 56.9%)
CIE-LABlab(16.20, 28.86, -47.72)
CIE-LCHlch(16.20, 55.77, 301.17°)
OKLaboklab(28.95% 0.0033 -0.1381)
OKLCHoklch(28.95% 0.138 271.3)
XYZxyz(3.5821, 2.1381, 14.9727)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C6E #6E6917
analogous
#17476E #171C6E #3D176E
triadic
#171C6E #6E171C #1C6E17
tetradic
#171C6E #6E1747 #6E6917 #176E3D
square
#171C6E #6E1747 #6E6917 #176E3D
split-complementary
#171C6E #6E3D17 #476E17
monochromatic
#050619 #0C0F3B #171C6E #2229A1 #2C36D3

Accessibility & contrast

On white

14.71
#171C6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#171C6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C6E
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C6E#FFFFFF#000000##FFFFFF
##171C6E1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171c6e;
/* rgb */ color: rgb(23, 28, 110);
/* oklch */ color: oklch(29.0% 0.138 271.3);
Tailwind
colors: {
  custom: {
    50: '#645999',
    500: '#171c6e',
    950: '#000000',
  },
}
SCSS
$custom: #171c6e;
$custom-light: #645999;
$custom-dark: #000000;
JSON
{
  "hex": "#171c6e",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 110
  },
  "hsl": {
    "h": 236.552,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28953,
    "c": 0.13816,
    "h": 271.3
  },
  "luminance": 0.02138
}

Semantic roles & 50–950 ramp

primary
#171C6E
secondary
#A49E3D
accent
#DF3FE8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171C6E

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

Preview Lab → · Contrast checker → · Palette generator →

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