#171E8F#171E8F

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

Color values

HEX#171E8F
RGBrgb(23, 30, 143)
HSLhsl(237, 72%, 33%)
HSVhsv(237, 84%, 56%)
CMYKcmyk(83.9%, 79%, 0%, 43.9%)
CIE-LABlab(20.41, 39.60, -61.73)
CIE-LCHlch(20.41, 73.34, 302.68°)
OKLaboklab(33.07% -0.0029 -0.1788)
OKLCHoklch(33.07% 0.179 269.1)
XYZxyz(5.7738, 3.0932, 26.2740)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E8F #8F8817
analogous
#175A8F #171E8F #4C178F
triadic
#171E8F #8F171E #1E8F17
tetradic
#171E8F #8F175A #8F8817 #178F4C
square
#171E8F #8F175A #8F8817 #178F4C
split-complementary
#171E8F #8F4C17 #5A8F17
monochromatic
#060826 #0F135A #171E8F #1F29C4 #4049E0

Accessibility & contrast

On white

12.97
#171E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#171E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E8F
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E8F#FFFFFF#000000##FFFFFF
##171E8F1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #171e8f;
/* rgb */ color: rgb(23, 30, 143);
/* oklch */ color: oklch(33.1% 0.179 269.1);
Tailwind
colors: {
  custom: {
    50: '#6d5cb1',
    500: '#171e8f',
    950: '#000000',
  },
}
SCSS
$custom: #171e8f;
$custom-light: #6d5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#171e8f",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 236.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3307,
    "c": 0.17887,
    "h": 269.1
  },
  "luminance": 0.03094
}

Semantic roles & 50–950 ramp

primary
#171E8F
secondary
#C1B941
accent
#E439EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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