#172D81#172D81

#172D81 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.144 H 266.8°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#172D81
RGBrgb(23, 45, 129)
HSLhsl(228, 70%, 30%)
HSVhsv(228, 82%, 51%)
CMYKcmyk(82.2%, 65.1%, 0%, 49.4%)
CIE-LABlab(22.46, 24.70, -49.60)
CIE-LCHlch(22.46, 55.41, 296.47°)
OKLaboklab(34.1% -0.008 -0.1435)
OKLCHoklch(34.1% 0.144 266.8)
XYZxyz(5.2528, 3.6433, 21.1910)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D81 #816B17
analogous
#176281 #172D81 #361781
triadic
#172D81 #81172D #2D8117
tetradic
#172D81 #811762 #816B17 #178136
square
#172D81 #811762 #816B17 #178136
split-complementary
#172D81 #813617 #628117
monochromatic
#05091A #0E1B4D #172D81 #203FB5 #3759DB

Accessibility & contrast

On white

12.15
#172D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#172D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D81
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D81#FFFFFF#000000##FFFFFF
##172D811.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #172d81;
/* rgb */ color: rgb(23, 45, 129);
/* oklch */ color: oklch(34.1% 0.144 266.8);
Tailwind
colors: {
  custom: {
    50: '#6865a6',
    500: '#172d81',
    950: '#000000',
  },
}
SCSS
$custom: #172d81;
$custom-light: #6865a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172d81",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 227.547,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34102,
    "c": 0.14375,
    "h": 266.8
  },
  "luminance": 0.03644
}

Semantic roles & 50–950 ramp

primary
#172D81
secondary
#B59D3E
accent
#C83BED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172D81

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

Preview Lab → · Contrast checker → · Palette generator →

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