#172A7D#172A7D

#172A7D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.142 H 267.5°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#172A7D
RGBrgb(23, 42, 125)
HSLhsl(229, 69%, 29%)
HSVhsv(229, 82%, 49%)
CMYKcmyk(81.6%, 66.4%, 0%, 51%)
CIE-LABlab(21.28, 25.19, -49.01)
CIE-LCHlch(21.28, 55.10, 297.20°)
OKLaboklab(33.12% -0.0061 -0.1418)
OKLCHoklch(33.12% 0.142 267.5)
XYZxyz(4.8817, 3.3182, 19.7813)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A7D #7D6A17
analogous
#175D7D #172A7D #37177D
triadic
#172A7D #7D172A #2A7D17
tetradic
#172A7D #7D175D #7D6A17 #177D37
square
#172A7D #7D175D #7D6A17 #177D37
split-complementary
#172A7D #7D3717 #5D7D17
monochromatic
#05091A #0D1949 #172A7D #213BB1 #3553DA

Accessibility & contrast

On white

12.62
#172A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#172A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A7D
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A7D#FFFFFF#000000##FFFFFF
##172A7D1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172a7d;
/* rgb */ color: rgb(23, 42, 125);
/* oklch */ color: oklch(33.1% 0.142 267.5);
Tailwind
colors: {
  custom: {
    50: '#6763a3',
    500: '#172a7d',
    950: '#000000',
  },
}
SCSS
$custom: #172a7d;
$custom-light: #6763a3;
$custom-dark: #000000;
JSON
{
  "hex": "#172a7d",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 228.824,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33116,
    "c": 0.14195,
    "h": 267.5
  },
  "luminance": 0.03319
}

Semantic roles & 50–950 ramp

primary
#172A7D
secondary
#B29C3E
accent
#CB3CEC
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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