#172A72#172A72

#172A72 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.0% C 0.126 H 267.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#172A72
RGBrgb(23, 42, 114)
HSLhsl(227, 66%, 27%)
HSVhsv(227, 80%, 45%)
CMYKcmyk(79.8%, 63.2%, 0%, 55.3%)
CIE-LABlab(20.25, 20.75, -43.65)
CIE-LCHlch(20.25, 48.34, 295.43°)
OKLaboklab(32.04% -0.0059 -0.1261)
OKLCHoklch(32.04% 0.126 267.3)
XYZxyz(4.2175, 3.0525, 16.2832)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A72 #725F17
analogous
#175872 #172A72 #321772
triadic
#172A72 #72172A #2A7217
tetradic
#172A72 #721758 #725F17 #177232
square
#172A72 #721758 #725F17 #177232
split-complementary
#172A72 #723217 #587217
monochromatic
#050919 #0D173F #172A72 #213DA5 #2E51D5

Accessibility & contrast

On white

13.04
#172A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#172A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A72
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A72#FFFFFF#000000##FFFFFF
##172A721.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172a72;
/* rgb */ color: rgb(23, 42, 114);
/* oklch */ color: oklch(32.0% 0.126 267.3);
Tailwind
colors: {
  custom: {
    50: '#64639b',
    500: '#172a72',
    950: '#000000',
  },
}
SCSS
$custom: #172a72;
$custom-light: #64639b;
$custom-dark: #000000;
JSON
{
  "hex": "#172a72",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 227.473,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32043,
    "c": 0.12628,
    "h": 267.3
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#172A72
secondary
#A8913D
accent
#C63EE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172A72

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

Preview Lab → · Contrast checker → · Palette generator →

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