#171172#171172

#171172 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.154 H 272.6°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#171172
RGBrgb(23, 17, 114)
HSLhsl(244, 74%, 26%)
HSVhsv(244, 85%, 45%)
CMYKcmyk(79.8%, 85.1%, 0%, 55.3%)
CIE-LABlab(14.39, 36.78, -53.31)
CIE-LCHlch(14.39, 64.77, 304.60°)
OKLaboklab(27.82% 0.0071 -0.1542)
OKLCHoklch(27.82% 0.154 272.6)
XYZxyz(3.5900, 1.7976, 16.0741)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171172 #6C7211
analogous
#113B72 #171172 #471172
triadic
#171172 #721711 #117217
tetradic
#171172 #72113B #6C7211 #117247
square
#171172 #72113B #6C7211 #117247
split-complementary
#171172 #724711 #3B7211
monochromatic
#05041B #0C093D #171172 #2219A7 #2C21DD

Accessibility & contrast

On white

15.45
#171172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171172
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171172#FFFFFF#000000##FFFFFF
##1711721.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002975
Deuteranopia (green-blind)
#002070
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171172;
/* rgb */ color: rgb(23, 17, 114);
/* oklch */ color: oklch(27.8% 0.154 272.6);
Tailwind
colors: {
  custom: {
    50: '#67529c',
    500: '#171172',
    950: '#000000',
  },
}
SCSS
$custom: #171172;
$custom-light: #67529c;
$custom-dark: #000000;
JSON
{
  "hex": "#171172",
  "rgb": {
    "r": 23,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 243.711,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27816,
    "c": 0.1544,
    "h": 272.6
  },
  "luminance": 0.01798
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171172

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

Preview Lab → · Contrast checker → · Palette generator →

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