#172A81#172A81

#172A81 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.147 H 267.6°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#172A81
RGBrgb(23, 42, 129)
HSLhsl(229, 70%, 30%)
HSVhsv(229, 82%, 51%)
CMYKcmyk(82.2%, 67.4%, 0%, 49.4%)
CIE-LABlab(21.66, 26.77, -50.90)
CIE-LCHlch(21.66, 57.51, 297.74°)
OKLaboklab(33.52% -0.0062 -0.1474)
OKLCHoklch(33.52% 0.147 267.6)
XYZxyz(5.1424, 3.4225, 21.1542)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A81 #816E17
analogous
#175F81 #172A81 #391781
triadic
#172A81 #81172A #2A8117
tetradic
#172A81 #81175F #816E17 #178139
square
#172A81 #81175F #816E17 #178139
split-complementary
#172A81 #813917 #5F8117
monochromatic
#05081A #0E194D #172A81 #203BB5 #3755DB

Accessibility & contrast

On white

12.47
#172A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#172A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A81
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A81#FFFFFF#000000##FFFFFF
##172A811.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172a81;
/* rgb */ color: rgb(23, 42, 129);
/* oklch */ color: oklch(33.5% 0.147 267.6);
Tailwind
colors: {
  custom: {
    50: '#6863a6',
    500: '#172a81',
    950: '#000000',
  },
}
SCSS
$custom: #172a81;
$custom-light: #6863a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172a81",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 129
  },
  "hsl": {
    "h": 229.245,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33518,
    "c": 0.14749,
    "h": 267.6
  },
  "luminance": 0.03423
}

Semantic roles & 50–950 ramp

primary
#172A81
secondary
#B5A03E
accent
#CD3BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172A81

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

Preview Lab → · Contrast checker → · Palette generator →

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