#172879#172879

#172879 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.139 H 268.1°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#172879
RGBrgb(23, 40, 121)
HSLhsl(230, 68%, 28%)
HSVhsv(230, 81%, 47%)
CMYKcmyk(81%, 66.9%, 0%, 52.5%)
CIE-LABlab(20.36, 24.98, -47.96)
CIE-LCHlch(20.36, 54.08, 297.52°)
OKLaboklab(32.32% -0.0047 -0.1388)
OKLCHoklch(32.32% 0.139 268.1)
XYZxyz(4.5621, 3.0797, 18.4395)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172879 #796817
analogous
#175979 #172879 #371779
triadic
#172879 #791728 #287917
tetradic
#172879 #791759 #796817 #177937
square
#172879 #791759 #796817 #177937
split-complementary
#172879 #793717 #597917
monochromatic
#05081A #0D1746 #172879 #2139AC #324FD8

Accessibility & contrast

On white

13.00
#172879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#172879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172879
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172879#FFFFFF#000000##FFFFFF
##1728791.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172879;
/* rgb */ color: rgb(23, 40, 121);
/* oklch */ color: oklch(32.3% 0.139 268.1);
Tailwind
colors: {
  custom: {
    50: '#6661a1',
    500: '#172879',
    950: '#000000',
  },
}
SCSS
$custom: #172879;
$custom-light: #6661a1;
$custom-dark: #000000;
JSON
{
  "hex": "#172879",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 229.592,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32324,
    "c": 0.13886,
    "h": 268.1
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

primary
#172879
secondary
#AE9B3E
accent
#CD3DEB
background
#F6F5FA
surface
#EBEAF3
border
#C6C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172879

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

Preview Lab → · Contrast checker → · Palette generator →

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