#172A8D#172A8D

#172A8D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.164 H 267.5°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#172A8D
RGBrgb(23, 42, 141)
HSLhsl(230, 72%, 32%)
HSVhsv(230, 84%, 55%)
CMYKcmyk(83.7%, 70.2%, 0%, 44.7%)
CIE-LABlab(22.86, 31.43, -56.44)
CIE-LCHlch(22.86, 64.60, 299.11°)
OKLaboklab(34.76% -0.007 -0.1635)
OKLCHoklch(34.76% 0.164 267.5)
XYZxyz(5.9874, 3.7605, 25.6044)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A8D #8D7A17
analogous
#17658D #172A8D #3F178D
triadic
#172A8D #8D172A #2A8D17
tetradic
#172A8D #8D1765 #8D7A17 #178D3F
square
#172A8D #8D1765 #8D7A17 #178D3F
split-complementary
#172A8D #8D3F17 #658D17
monochromatic
#060B24 #0E1A58 #172A8D #203AC2 #3F59E0

Accessibility & contrast

On white

11.98
#172A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#172A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A8D
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A8D#FFFFFF#000000##FFFFFF
##172A8D1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #172a8d;
/* rgb */ color: rgb(23, 42, 141);
/* oklch */ color: oklch(34.8% 0.164 267.5);
Tailwind
colors: {
  custom: {
    50: '#6c63af',
    500: '#172a8d',
    950: '#000000',
  },
}
SCSS
$custom: #172a8d;
$custom-light: #6c63af;
$custom-dark: #000000;
JSON
{
  "hex": "#172a8d",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 230.339,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34759,
    "c": 0.16369,
    "h": 267.5
  },
  "luminance": 0.03761
}

Semantic roles & 50–950 ramp

primary
#172A8D
secondary
#C0AB40
accent
#D139EF
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #172A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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