#172D79#172D79

#172D79 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.132 H 266.5°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#172D79
RGBrgb(23, 45, 121)
HSLhsl(227, 68%, 28%)
HSVhsv(227, 81%, 47%)
CMYKcmyk(81%, 62.8%, 0%, 52.5%)
CIE-LABlab(21.72, 21.47, -45.73)
CIE-LCHlch(21.72, 50.52, 295.15°)
OKLaboklab(33.33% -0.008 -0.1322)
OKLCHoklch(33.33% 0.132 266.5)
XYZxyz(4.7417, 3.4389, 18.4993)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D79 #796317
analogous
#175E79 #172D79 #321779
triadic
#172D79 #79172D #2D7917
tetradic
#172D79 #79175E #796317 #177932
square
#172D79 #79175E #796317 #177932
split-complementary
#172D79 #793217 #5E7917
monochromatic
#050A1A #0D1A46 #172D79 #2140AC #3258D8

Accessibility & contrast

On white

12.44
#172D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#172D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D79
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D79#FFFFFF#000000##FFFFFF
##172D791.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172d79;
/* rgb */ color: rgb(23, 45, 121);
/* oklch */ color: oklch(33.3% 0.132 266.5);
Tailwind
colors: {
  custom: {
    50: '#6665a0',
    500: '#172d79',
    950: '#000000',
  },
}
SCSS
$custom: #172d79;
$custom-light: #6665a0;
$custom-dark: #000000;
JSON
{
  "hex": "#172d79",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 226.531,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33332,
    "c": 0.13243,
    "h": 266.5
  },
  "luminance": 0.03439
}

Semantic roles & 50–950 ramp

primary
#172D79
secondary
#AE953E
accent
#C43DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #172D79

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

Preview Lab → · Contrast checker → · Palette generator →

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