#172071#172071

#172071 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.138 H 270.3°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#172071
RGBrgb(23, 32, 113)
HSLhsl(234, 66%, 27%)
HSVhsv(234, 80%, 44%)
CMYKcmyk(79.6%, 71.7%, 0%, 55.7%)
CIE-LABlab(17.49, 27.34, -47.53)
CIE-LCHlch(17.49, 54.84, 299.91°)
OKLaboklab(29.99% 0.0006 -0.1376)
OKLCHoklch(29.99% 0.138 270.3)
XYZxyz(3.8495, 2.4070, 15.8813)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172071 #716817
analogous
#174D71 #172071 #3B1771
triadic
#172071 #711720 #207117
tetradic
#172071 #71174D #716817 #17713B
square
#172071 #71174D #716817 #17713B
split-complementary
#172071 #713B17 #4D7117
monochromatic
#050719 #0D123E #172071 #212EA4 #2E3FD4

Accessibility & contrast

On white

14.18
#172071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#172071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172071
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172071#FFFFFF#000000##FFFFFF
##1720711.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F73
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172071;
/* rgb */ color: rgb(23, 32, 113);
/* oklch */ color: oklch(30.0% 0.138 270.3);
Tailwind
colors: {
  custom: {
    50: '#655b9b',
    500: '#172071',
    950: '#000000',
  },
}
SCSS
$custom: #172071;
$custom-light: #655b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#172071",
  "rgb": {
    "r": 23,
    "g": 32,
    "b": 113
  },
  "hsl": {
    "h": 234,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29986,
    "c": 0.13757,
    "h": 270.3
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#172071
secondary
#A79C3D
accent
#D83FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172071

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

Preview Lab → · Contrast checker → · Palette generator →

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