#172979#172979

#172979 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.138 H 267.8°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#172979
RGBrgb(23, 41, 121)
HSLhsl(229, 68%, 28%)
HSVhsv(229, 81%, 47%)
CMYKcmyk(81%, 66.1%, 0%, 52.5%)
CIE-LABlab(20.63, 24.29, -47.52)
CIE-LCHlch(20.63, 53.37, 297.07°)
OKLaboklab(32.52% -0.0053 -0.1375)
OKLCHoklch(32.52% 0.138 267.8)
XYZxyz(4.5963, 3.1480, 18.4508)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172979 #796717
analogous
#175A79 #172979 #361779
triadic
#172979 #791729 #297917
tetradic
#172979 #79175A #796717 #177936
square
#172979 #79175A #796717 #177936
split-complementary
#172979 #793617 #5A7917
monochromatic
#05091A #0D1846 #172979 #213AAC #3251D8

Accessibility & contrast

On white

12.89
#172979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#172979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172979
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172979#FFFFFF#000000##FFFFFF
##1729791.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172979;
/* rgb */ color: rgb(23, 41, 121);
/* oklch */ color: oklch(32.5% 0.138 267.8);
Tailwind
colors: {
  custom: {
    50: '#6662a1',
    500: '#172979',
    950: '#000000',
  },
}
SCSS
$custom: #172979;
$custom-light: #6662a1;
$custom-dark: #000000;
JSON
{
  "hex": "#172979",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 228.98,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32521,
    "c": 0.13759,
    "h": 267.8
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#172979
secondary
#AE993E
accent
#CB3DEB
background
#F6F5FA
surface
#EBEAF3
border
#C6C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172979

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

Preview Lab → · Contrast checker → · Palette generator →

#172979 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva