#171D81#171D81

#171D81 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.162 H 269.9°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#171D81
RGBrgb(23, 29, 129)
HSLhsl(237, 70%, 30%)
HSVhsv(237, 82%, 51%)
CMYKcmyk(82.2%, 77.5%, 0%, 49.4%)
CIE-LABlab(18.56, 35.24, -56.01)
CIE-LCHlch(18.56, 66.17, 302.18°)
OKLaboklab(31.28% -0.0002 -0.1622)
OKLCHoklch(31.28% 0.162 269.9)
XYZxyz(4.7538, 2.6453, 21.0247)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D81 #817B17
analogous
#175281 #171D81 #461781
triadic
#171D81 #81171D #1D8117
tetradic
#171D81 #811752 #817B17 #178146
square
#171D81 #811752 #817B17 #178146
split-complementary
#171D81 #814617 #528117
monochromatic
#05061A #0E114D #171D81 #2029B5 #3740DB

Accessibility & contrast

On white

13.73
#171D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#171D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D81
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D81#FFFFFF#000000##FFFFFF
##171D811.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171d81;
/* rgb */ color: rgb(23, 29, 129);
/* oklch */ color: oklch(31.3% 0.162 269.9);
Tailwind
colors: {
  custom: {
    50: '#6a5aa7',
    500: '#171d81',
    950: '#000000',
  },
}
SCSS
$custom: #171d81;
$custom-light: #6a5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#171d81",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 236.604,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3128,
    "c": 0.16223,
    "h": 269.9
  },
  "luminance": 0.02646
}

Semantic roles & 50–950 ramp

primary
#171D81
secondary
#B5AF3E
accent
#E33BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #171D81

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

Preview Lab → · Contrast checker → · Palette generator →

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