#172D7D#172D7D

#172D7D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.138 H 266.7°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#172D7D
RGBrgb(23, 45, 125)
HSLhsl(227, 69%, 29%)
HSVhsv(227, 82%, 49%)
CMYKcmyk(81.6%, 64%, 0%, 51%)
CIE-LABlab(22.08, 23.09, -47.68)
CIE-LCHlch(22.08, 52.98, 295.84°)
OKLaboklab(33.71% -0.0079 -0.1379)
OKLCHoklch(33.71% 0.138 266.7)
XYZxyz(4.9921, 3.5390, 19.8181)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D7D #7D6717
analogous
#17607D #172D7D #34177D
triadic
#172D7D #7D172D #2D7D17
tetradic
#172D7D #7D1760 #7D6717 #177D34
square
#172D7D #7D1760 #7D6717 #177D34
split-complementary
#172D7D #7D3417 #607D17
monochromatic
#05091A #0D1A49 #172D7D #2140B1 #3558DA

Accessibility & contrast

On white

12.30
#172D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#172D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D7D
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D7D#FFFFFF#000000##FFFFFF
##172D7D1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172d7d;
/* rgb */ color: rgb(23, 45, 125);
/* oklch */ color: oklch(33.7% 0.138 266.7);
Tailwind
colors: {
  custom: {
    50: '#6765a3',
    500: '#172d7d',
    950: '#000000',
  },
}
SCSS
$custom: #172d7d;
$custom-light: #6765a3;
$custom-dark: #000000;
JSON
{
  "hex": "#172d7d",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 227.059,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33714,
    "c": 0.13813,
    "h": 266.7
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#172D7D
secondary
#B2993E
accent
#C63CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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