#171E81#171E81

#171E81 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.161 H 269.8°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#171E81
RGBrgb(23, 30, 129)
HSLhsl(236, 70%, 30%)
HSVhsv(236, 82%, 51%)
CMYKcmyk(82.2%, 76.7%, 0%, 49.4%)
CIE-LABlab(18.78, 34.63, -55.65)
CIE-LCHlch(18.78, 65.55, 301.89°)
OKLaboklab(31.43% -0.0006 -0.1612)
OKLCHoklch(31.43% 0.161 269.8)
XYZxyz(4.7787, 2.6951, 21.0330)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E81 #817A17
analogous
#175381 #171E81 #451781
triadic
#171E81 #81171E #1E8117
tetradic
#171E81 #811753 #817A17 #178145
square
#171E81 #811753 #817A17 #178145
split-complementary
#171E81 #814517 #538117
monochromatic
#05061A #0E124D #171E81 #202AB5 #3742DB

Accessibility & contrast

On white

13.64
#171E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#171E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E81
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E81#FFFFFF#000000##FFFFFF
##171E811.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #171e81;
/* rgb */ color: rgb(23, 30, 129);
/* oklch */ color: oklch(31.4% 0.161 269.8);
Tailwind
colors: {
  custom: {
    50: '#695ba7',
    500: '#171e81',
    950: '#000000',
  },
}
SCSS
$custom: #171e81;
$custom-light: #695ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#171e81",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 236.038,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31433,
    "c": 0.16121,
    "h": 269.8
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#171E81
secondary
#B5AE3E
accent
#E13BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #171E81

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

Preview Lab → · Contrast checker → · Palette generator →

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