#171E8E#171E8E

#171E8E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.178 H 269.1°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#171E8E
RGBrgb(23, 30, 142)
HSLhsl(236, 72%, 32%)
HSVhsv(236, 84%, 56%)
CMYKcmyk(83.8%, 78.9%, 0%, 44.3%)
CIE-LABlab(20.29, 39.25, -61.31)
CIE-LCHlch(20.29, 72.80, 302.63°)
OKLaboklab(32.95% -0.0028 -0.1776)
OKLCHoklch(32.95% 0.178 269.1)
XYZxyz(5.6984, 3.0630, 25.8768)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E8E #8E8717
analogous
#17598E #171E8E #4C178E
triadic
#171E8E #8E171E #1E8E17
tetradic
#171E8E #8E1759 #8E8717 #178E4C
square
#171E8E #8E1759 #8E8717 #178E4C
split-complementary
#171E8E #8E4C17 #598E17
monochromatic
#060825 #0E1359 #171E8E #2029C3 #3F49E0

Accessibility & contrast

On white

13.02
#171E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#171E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E8E
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E8E#FFFFFF#000000##FFFFFF
##171E8E1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002B8C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #171e8e;
/* rgb */ color: rgb(23, 30, 142);
/* oklch */ color: oklch(33.0% 0.178 269.1);
Tailwind
colors: {
  custom: {
    50: '#6d5cb0',
    500: '#171e8e',
    950: '#000000',
  },
}
SCSS
$custom: #171e8e;
$custom-light: #6d5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#171e8e",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 236.471,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32952,
    "c": 0.17764,
    "h": 269.1
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#171E8E
secondary
#C0B940
accent
#E439EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #171E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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