#172F81#172F81

#172F81 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.141 H 266.3°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#172F81
RGBrgb(23, 47, 129)
HSLhsl(226, 70%, 30%)
HSVhsv(226, 82%, 51%)
CMYKcmyk(82.2%, 63.6%, 0%, 49.4%)
CIE-LABlab(23.00, 23.30, -48.71)
CIE-LCHlch(23.00, 54.00, 295.56°)
OKLaboklab(34.5% -0.0092 -0.1409)
OKLCHoklch(34.5% 0.141 266.3)
XYZxyz(5.3309, 3.7995, 21.2170)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F81 #816917
analogous
#176481 #172F81 #341781
triadic
#172F81 #81172F #2F8117
tetradic
#172F81 #811764 #816917 #178134
square
#172F81 #811764 #816917 #178134
split-complementary
#172F81 #813417 #648117
monochromatic
#05091A #0E1C4D #172F81 #2042B5 #375CDB

Accessibility & contrast

On white

11.93
#172F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#172F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F81
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F81#FFFFFF#000000##FFFFFF
##172F811.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #172f81;
/* rgb */ color: rgb(23, 47, 129);
/* oklch */ color: oklch(34.5% 0.141 266.3);
Tailwind
colors: {
  custom: {
    50: '#6867a6',
    500: '#172f81',
    950: '#000000',
  },
}
SCSS
$custom: #172f81;
$custom-light: #6867a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172f81",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 226.415,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34504,
    "c": 0.1412,
    "h": 266.3
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#172F81
secondary
#B59A3E
accent
#C43BED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #172F81

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

Preview Lab → · Contrast checker → · Palette generator →

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