#172AA0#172AA0

#172AA0 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.188 H 267.3°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#172AA0
RGBrgb(23, 42, 160)
HSLhsl(232, 75%, 36%)
HSVhsv(232, 86%, 63%)
CMYKcmyk(85.6%, 73.8%, 0%, 37.3%)
CIE-LABlab(24.88, 38.51, -64.81)
CIE-LCHlch(24.88, 75.39, 300.72°)
OKLaboklab(36.81% -0.0088 -0.1879)
OKLCHoklch(36.81% 0.188 267.3)
XYZxyz(7.5243, 4.3752, 33.6988)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172AA0 #A08D17
analogous
#176EA0 #172AA0 #4817A0
triadic
#172AA0 #A0172A #2AA017
tetradic
#172AA0 #A0176E #A08D17 #17A048
square
#172AA0 #A0176E #A08D17 #17A048
split-complementary
#172AA0 #A04817 #6EA017
monochromatic
#080E35 #0F1C6A #172AA0 #1F38D6 #4C61E5

Accessibility & contrast

On white

11.20
#172AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#172AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172AA0
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172AA0#FFFFFF#000000##FFFFFF
##172AA01.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #172aa0;
/* rgb */ color: rgb(23, 42, 160);
/* oklch */ color: oklch(36.8% 0.188 267.3);
Tailwind
colors: {
  custom: {
    50: '#7164bd',
    500: '#172aa0',
    950: '#000000',
  },
}
SCSS
$custom: #172aa0;
$custom-light: #7164bd;
$custom-dark: #000000;
JSON
{
  "hex": "#172aa0",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 231.679,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36812,
    "c": 0.1881,
    "h": 267.3
  },
  "luminance": 0.04376
}

Semantic roles & 50–950 ramp

primary
#172AA0
secondary
#C7B64C
accent
#D836F1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #172AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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