#171E84#171E84

#171E84 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.165 H 269.6°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#171E84
RGBrgb(23, 30, 132)
HSLhsl(236, 70%, 30%)
HSVhsv(236, 83%, 52%)
CMYKcmyk(82.6%, 77.3%, 0%, 48.2%)
CIE-LABlab(19.12, 35.71, -56.98)
CIE-LCHlch(19.12, 67.24, 302.08°)
OKLaboklab(31.78% -0.0011 -0.1651)
OKLCHoklch(31.78% 0.165 269.6)
XYZxyz(4.9811, 2.7761, 22.0986)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E84 #847D17
analogous
#175484 #171E84 #461784
triadic
#171E84 #84171E #1E8417
tetradic
#171E84 #841754 #847D17 #178446
square
#171E84 #841754 #847D17 #178446
split-complementary
#171E84 #844617 #548417
monochromatic
#05061C #0E1250 #171E84 #202AB8 #3943DC

Accessibility & contrast

On white

13.50
#171E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#171E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E84
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E84#FFFFFF#000000##FFFFFF
##171E841.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002982
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #171e84;
/* rgb */ color: rgb(23, 30, 132);
/* oklch */ color: oklch(31.8% 0.165 269.6);
Tailwind
colors: {
  custom: {
    50: '#6a5ba9',
    500: '#171e84',
    950: '#000000',
  },
}
SCSS
$custom: #171e84;
$custom-light: #6a5ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#171e84",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 132
  },
  "hsl": {
    "h": 236.147,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3178,
    "c": 0.16506,
    "h": 269.6
  },
  "luminance": 0.02777
}

Semantic roles & 50–950 ramp

primary
#171E84
secondary
#B8B03F
accent
#E23BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171E84

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

Preview Lab → · Contrast checker → · Palette generator →

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