#171472#171472

#171472 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.152 H 272.3°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#171472
RGBrgb(23, 20, 114)
HSLhsl(242, 70%, 26%)
HSVhsv(242, 82%, 45%)
CMYKcmyk(79.8%, 82.5%, 0%, 55.3%)
CIE-LABlab(14.94, 35.18, -52.40)
CIE-LCHlch(14.94, 63.11, 303.88°)
OKLaboklab(28.2% 0.0061 -0.1516)
OKLCHoklch(28.2% 0.152 272.3)
XYZxyz(3.6397, 1.8970, 16.0907)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171472 #6F7214
analogous
#144072 #171472 #461472
triadic
#171472 #721714 #147217
tetradic
#171472 #721440 #6F7214 #147246
square
#171472 #721440 #6F7214 #147246
split-complementary
#171472 #724614 #407214
monochromatic
#05051A #0C0B3E #171472 #221DA6 #2D27D9

Accessibility & contrast

On white

15.22
#171472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#171472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171472
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171472#FFFFFF#000000##FFFFFF
##1714721.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002170
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171472;
/* rgb */ color: rgb(23, 20, 114);
/* oklch */ color: oklch(28.2% 0.152 272.3);
Tailwind
colors: {
  custom: {
    50: '#66549c',
    500: '#171472',
    950: '#000000',
  },
}
SCSS
$custom: #171472;
$custom-light: #66549c;
$custom-dark: #000000;
JSON
{
  "hex": "#171472",
  "rgb": {
    "r": 23,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 241.915,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28199,
    "c": 0.15177,
    "h": 272.3
  },
  "luminance": 0.01897
}

Semantic roles & 50–950 ramp

primary
#171472
secondary
#A5A839
accent
#ED3BE7
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171472

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

Preview Lab → · Contrast checker → · Palette generator →

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