#172179#172179

#172179 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.147 H 269.7°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#172179
RGBrgb(23, 33, 121)
HSLhsl(234, 68%, 28%)
HSVhsv(234, 81%, 47%)
CMYKcmyk(81%, 72.7%, 0%, 52.5%)
CIE-LABlab(18.58, 29.74, -50.88)
CIE-LCHlch(18.58, 58.94, 300.31°)
OKLaboklab(31.03% -0.0008 -0.1473)
OKLCHoklch(31.03% 0.147 269.7)
XYZxyz(4.3472, 2.6499, 18.3678)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172179 #796F17
analogous
#175279 #172179 #3E1779
triadic
#172179 #791721 #217917
tetradic
#172179 #791752 #796F17 #17793E
square
#172179 #791752 #796F17 #17793E
split-complementary
#172179 #793E17 #527917
monochromatic
#05071A #0D1346 #172179 #212FAC #3243D8

Accessibility & contrast

On white

13.73
#172179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#172179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172179
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172179#FFFFFF#000000##FFFFFF
##1721791.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172179;
/* rgb */ color: rgb(23, 33, 121);
/* oklch */ color: oklch(31.0% 0.147 269.7);
Tailwind
colors: {
  custom: {
    50: '#675ca1',
    500: '#172179',
    950: '#000000',
  },
}
SCSS
$custom: #172179;
$custom-light: #675ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#172179",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 233.878,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31029,
    "c": 0.14734,
    "h": 269.7
  },
  "luminance": 0.0265
}

Semantic roles & 50–950 ramp

primary
#172179
secondary
#AEA33E
accent
#D93DEB
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #172179

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

Preview Lab → · Contrast checker → · Palette generator →

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