#172D80#172D80

#172D80 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.142 H 266.8°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#172D80
RGBrgb(23, 45, 128)
HSLhsl(227, 70%, 30%)
HSVhsv(227, 82%, 50%)
CMYKcmyk(82%, 64.8%, 0%, 49.8%)
CIE-LABlab(22.36, 24.30, -49.12)
CIE-LCHlch(22.36, 54.80, 296.32°)
OKLaboklab(34% -0.008 -0.1421)
OKLCHoklch(34% 0.142 266.8)
XYZxyz(5.1867, 3.6168, 20.8427)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D80 #806A17
analogous
#176180 #172D80 #361780
triadic
#172D80 #80172D #2D8017
tetradic
#172D80 #801761 #806A17 #178036
square
#172D80 #801761 #806A17 #178036
split-complementary
#172D80 #803617 #618017
monochromatic
#05091A #0E1B4C #172D80 #203FB4 #3659DB

Accessibility & contrast

On white

12.19
#172D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#172D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D80
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D80#FFFFFF#000000##FFFFFF
##172D801.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172d80;
/* rgb */ color: rgb(23, 45, 128);
/* oklch */ color: oklch(34.0% 0.142 266.8);
Tailwind
colors: {
  custom: {
    50: '#6865a6',
    500: '#172d80',
    950: '#000000',
  },
}
SCSS
$custom: #172d80;
$custom-light: #6865a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172d80",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 128
  },
  "hsl": {
    "h": 227.429,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34004,
    "c": 0.14235,
    "h": 266.8
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

primary
#172D80
secondary
#B49C3E
accent
#C73BEC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172D80

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

Preview Lab → · Contrast checker → · Palette generator →

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