#172D7E#172D7E

#172D7E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.140 H 266.7°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#172D7E
RGBrgb(23, 45, 126)
HSLhsl(227, 69%, 29%)
HSVhsv(227, 82%, 49%)
CMYKcmyk(81.7%, 64.3%, 0%, 50.6%)
CIE-LABlab(22.18, 23.49, -48.16)
CIE-LCHlch(22.18, 53.59, 296.00°)
OKLaboklab(33.81% -0.008 -0.1393)
OKLCHoklch(33.81% 0.14 266.7)
XYZxyz(5.0563, 3.5647, 20.1562)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D7E #7E6817
analogous
#17617E #172D7E #34177E
triadic
#172D7E #7E172D #2D7E17
tetradic
#172D7E #7E1761 #7E6817 #177E34
square
#172D7E #7E1761 #7E6817 #177E34
split-complementary
#172D7E #7E3417 #617E17
monochromatic
#05091A #0E1B4A #172D7E #203FB2 #3558DA

Accessibility & contrast

On white

12.26
#172D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172D7E
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D7E#FFFFFF#000000##FFFFFF
##172D7E1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172d7e;
/* rgb */ color: rgb(23, 45, 126);
/* oklch */ color: oklch(33.8% 0.140 266.7);
Tailwind
colors: {
  custom: {
    50: '#6765a4',
    500: '#172d7e',
    950: '#000000',
  },
}
SCSS
$custom: #172d7e;
$custom-light: #6765a4;
$custom-dark: #000000;
JSON
{
  "hex": "#172d7e",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 227.184,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3381,
    "c": 0.13955,
    "h": 266.7
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #172D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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