#172A84#172A84

#172A84 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.152 H 267.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#172A84
RGBrgb(23, 42, 132)
HSLhsl(230, 70%, 30%)
HSVhsv(230, 83%, 52%)
CMYKcmyk(82.6%, 68.2%, 0%, 48.2%)
CIE-LABlab(21.96, 27.95, -52.31)
CIE-LCHlch(21.96, 59.31, 298.12°)
OKLaboklab(33.82% -0.0064 -0.1515)
OKLCHoklch(33.82% 0.152 267.6)
XYZxyz(5.3447, 3.5034, 22.2199)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A84 #847117
analogous
#176184 #172A84 #3A1784
triadic
#172A84 #84172A #2A8417
tetradic
#172A84 #841761 #847117 #17843A
square
#172A84 #841761 #847117 #17843A
split-complementary
#172A84 #843A17 #618417
monochromatic
#05091C #0E1950 #172A84 #203BB8 #3955DC

Accessibility & contrast

On white

12.35
#172A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#172A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A84
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A84#FFFFFF#000000##FFFFFF
##172A841.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172a84;
/* rgb */ color: rgb(23, 42, 132);
/* oklch */ color: oklch(33.8% 0.152 267.6);
Tailwind
colors: {
  custom: {
    50: '#6963a9',
    500: '#172a84',
    950: '#000000',
  },
}
SCSS
$custom: #172a84;
$custom-light: #6963a9;
$custom-dark: #000000;
JSON
{
  "hex": "#172a84",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 132
  },
  "hsl": {
    "h": 229.541,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33824,
    "c": 0.15161,
    "h": 267.6
  },
  "luminance": 0.03504
}

Semantic roles & 50–950 ramp

primary
#172A84
secondary
#B8A33F
accent
#CE3BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#070510
muted
#7A797F

Preview Lab

Preview with #172A84

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

Preview Lab → · Contrast checker → · Palette generator →

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