#172F79#172F79

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

Color values

HEX#172F79
RGBrgb(23, 47, 121)
HSLhsl(225, 68%, 28%)
HSVhsv(225, 81%, 47%)
CMYKcmyk(81%, 61.2%, 0%, 52.5%)
CIE-LABlab(22.29, 20.05, -44.82)
CIE-LCHlch(22.29, 49.09, 294.10°)
OKLaboklab(33.75% -0.0094 -0.1295)
OKLCHoklch(33.75% 0.13 265.9)
XYZxyz(4.8198, 3.5951, 18.5254)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F79 #796117
analogous
#176079 #172F79 #301779
triadic
#172F79 #79172F #2F7917
tetradic
#172F79 #791760 #796117 #177930
square
#172F79 #791760 #796117 #177930
split-complementary
#172F79 #793017 #607917
monochromatic
#050A1A #0D1B46 #172F79 #2143AC #325BD8

Accessibility & contrast

On white

12.21
#172F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F79
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F79#FFFFFF#000000##FFFFFF
##172F791.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172f79;
/* rgb */ color: rgb(23, 47, 121);
/* oklch */ color: oklch(33.8% 0.130 265.9);
Tailwind
colors: {
  custom: {
    50: '#6567a0',
    500: '#172f79',
    950: '#000000',
  },
}
SCSS
$custom: #172f79;
$custom-light: #6567a0;
$custom-dark: #000000;
JSON
{
  "hex": "#172f79",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 225.306,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33752,
    "c": 0.12981,
    "h": 265.9
  },
  "luminance": 0.03596
}

Semantic roles & 50–950 ramp

primary
#172F79
secondary
#AE933E
accent
#C03DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #172F79

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

Preview Lab → · Contrast checker → · Palette generator →

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