#171E90#171E90

#171E90 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.180 H 269.0°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#171E90
RGBrgb(23, 30, 144)
HSLhsl(237, 72%, 33%)
HSVhsv(237, 84%, 56%)
CMYKcmyk(84%, 79.2%, 0%, 43.5%)
CIE-LABlab(20.53, 39.95, -62.16)
CIE-LCHlch(20.53, 73.89, 302.73°)
OKLaboklab(33.19% -0.0031 -0.1801)
OKLCHoklch(33.19% 0.18 269)
XYZxyz(5.8499, 3.1236, 26.6747)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E90 #908917
analogous
#175A90 #171E90 #4C1790
triadic
#171E90 #90171E #1E9017
tetradic
#171E90 #90175A #908917 #17904C
square
#171E90 #90175A #908917 #17904C
split-complementary
#171E90 #904C17 #5A9017
monochromatic
#060826 #0F135B #171E90 #1F29C5 #414AE1

Accessibility & contrast

On white

12.92
#171E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171E90
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E90#FFFFFF#000000##FFFFFF
##171E901.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002B8E
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #171e90;
/* rgb */ color: rgb(23, 30, 144);
/* oklch */ color: oklch(33.2% 0.180 269.0);
Tailwind
colors: {
  custom: {
    50: '#6e5cb2',
    500: '#171e90',
    950: '#000000',
  },
}
SCSS
$custom: #171e90;
$custom-light: #6e5cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#171e90",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 144
  },
  "hsl": {
    "h": 236.529,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33188,
    "c": 0.18011,
    "h": 269
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#171E90
secondary
#C1BA42
accent
#E539EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171E90

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

Preview Lab → · Contrast checker → · Palette generator →

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