#171171#171171

#171171 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.153 H 272.8°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#171171
RGBrgb(23, 17, 113)
HSLhsl(244, 74%, 25%)
HSVhsv(244, 85%, 44%)
CMYKcmyk(79.6%, 85%, 0%, 55.7%)
CIE-LABlab(14.26, 36.45, -52.88)
CIE-LCHlch(14.26, 64.22, 304.58°)
OKLaboklab(27.69% 0.0074 -0.153)
OKLCHoklch(27.69% 0.153 272.8)
XYZxyz(3.5334, 1.7749, 15.7760)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171171 #6B7111
analogous
#113B71 #171171 #471171
triadic
#171171 #711711 #117117
tetradic
#171171 #71113B #6B7111 #117147
square
#171171 #71113B #6B7111 #117147
split-complementary
#171171 #714711 #3B7111
monochromatic
#05041B #0C093C #171171 #2219A6 #2D21DB

Accessibility & contrast

On white

15.50
#171171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#171171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171171
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171171#FFFFFF#000000##FFFFFF
##1711711.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#001F6F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171171;
/* rgb */ color: rgb(23, 17, 113);
/* oklch */ color: oklch(27.7% 0.153 272.8);
Tailwind
colors: {
  custom: {
    50: '#66529b',
    500: '#171171',
    950: '#000000',
  },
}
SCSS
$custom: #171171;
$custom-light: #66529b;
$custom-dark: #000000;
JSON
{
  "hex": "#171171",
  "rgb": {
    "r": 23,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 243.75,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.2769,
    "c": 0.15316,
    "h": 272.8
  },
  "luminance": 0.01775
}

Semantic roles & 50–950 ramp

primary
#171171
secondary
#A1A836
accent
#F137E5
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #171171

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

Preview Lab → · Contrast checker → · Palette generator →

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