#172D74#172D74

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

Color values

HEX#172D74
RGBrgb(23, 45, 116)
HSLhsl(226, 67%, 27%)
HSVhsv(226, 80%, 45%)
CMYKcmyk(80.2%, 61.2%, 0%, 54.5%)
CIE-LABlab(21.28, 19.42, -43.26)
CIE-LCHlch(21.28, 47.42, 294.18°)
OKLaboklab(32.86% -0.0081 -0.1249)
OKLCHoklch(32.86% 0.125 266.3)
XYZxyz(4.4430, 3.3194, 16.9262)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D74 #745E17
analogous
#175C74 #172D74 #2F1774
triadic
#172D74 #74172D #2D7417
tetradic
#172D74 #74175C #745E17 #17742F
square
#172D74 #74175C #745E17 #17742F
split-complementary
#172D74 #742F17 #5C7417
monochromatic
#050A1A #0D1941 #172D74 #2141A7 #3057D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172D74#FFFFFF#000000##FFFFFF
##172D741.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)
#003876
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172d74;
/* rgb */ color: rgb(23, 45, 116);
/* oklch */ color: oklch(32.9% 0.125 266.3);
Tailwind
colors: {
  custom: {
    50: '#64659d',
    500: '#172d74',
    950: '#000000',
  },
}
SCSS
$custom: #172d74;
$custom-light: #64659d;
$custom-dark: #000000;
JSON
{
  "hex": "#172d74",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 116
  },
  "hsl": {
    "h": 225.806,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32864,
    "c": 0.1252,
    "h": 266.3
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#172D74
secondary
#A9903D
accent
#C13EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172D74

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

Preview Lab → · Contrast checker → · Palette generator →

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