#172E79#172E79

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

Color values

HEX#172E79
RGBrgb(23, 46, 121)
HSLhsl(226, 68%, 28%)
HSVhsv(226, 81%, 47%)
CMYKcmyk(81%, 62%, 0%, 52.5%)
CIE-LABlab(22.00, 20.76, -45.28)
CIE-LCHlch(22.00, 49.81, 294.63°)
OKLaboklab(33.54% -0.0087 -0.1308)
OKLCHoklch(33.54% 0.131 266.2)
XYZxyz(4.7803, 3.5161, 18.5122)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E79 #796217
analogous
#175F79 #172E79 #311779
triadic
#172E79 #79172E #2E7917
tetradic
#172E79 #79175F #796217 #177931
square
#172E79 #79175F #796217 #177931
split-complementary
#172E79 #793117 #5F7917
monochromatic
#050A1A #0D1A46 #172E79 #2142AC #3259D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172E79#FFFFFF#000000##FFFFFF
##172E791.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)
#00397B
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172e79;
/* rgb */ color: rgb(23, 46, 121);
/* oklch */ color: oklch(33.5% 0.131 266.2);
Tailwind
colors: {
  custom: {
    50: '#6666a0',
    500: '#172e79',
    950: '#000000',
  },
}
SCSS
$custom: #172e79;
$custom-light: #6666a0;
$custom-dark: #000000;
JSON
{
  "hex": "#172e79",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 225.918,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33541,
    "c": 0.13113,
    "h": 266.2
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#172E79
secondary
#AE943E
accent
#C23DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #172E79

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

Preview Lab → · Contrast checker → · Palette generator →

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