#172D7C#172D7C

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

Color values

HEX#172D7C
RGBrgb(23, 45, 124)
HSLhsl(227, 69%, 29%)
HSVhsv(227, 81%, 49%)
CMYKcmyk(81.5%, 63.7%, 0%, 51.4%)
CIE-LABlab(21.99, 22.69, -47.20)
CIE-LCHlch(21.99, 52.37, 295.67°)
OKLaboklab(33.62% -0.0079 -0.1365)
OKLCHoklch(33.62% 0.137 266.7)
XYZxyz(4.9286, 3.5136, 19.4833)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D7C #7C6617
analogous
#17607C #172D7C #34177C
triadic
#172D7C #7C172D #2D7C17
tetradic
#172D7C #7C1760 #7C6617 #177C34
square
#172D7C #7C1760 #7C6617 #177C34
split-complementary
#172D7C #7C3417 #607C17
monochromatic
#05091A #0D1A48 #172D7C #2140B0 #3458D9

Accessibility & contrast

On white

12.33
#172D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172D7C
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D7C#FFFFFF#000000##FFFFFF
##172D7C1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172d7c;
/* rgb */ color: rgb(23, 45, 124);
/* oklch */ color: oklch(33.6% 0.137 266.7);
Tailwind
colors: {
  custom: {
    50: '#6665a3',
    500: '#172d7c',
    950: '#000000',
  },
}
SCSS
$custom: #172d7c;
$custom-light: #6665a3;
$custom-dark: #000000;
JSON
{
  "hex": "#172d7c",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 226.931,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33617,
    "c": 0.13671,
    "h": 266.7
  },
  "luminance": 0.03514
}

Semantic roles & 50–950 ramp

primary
#172D7C
secondary
#B1983E
accent
#C53CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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