#17217E#17217E

#17217E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.154 H 269.5°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#17217E
RGBrgb(23, 33, 126)
HSLhsl(234, 69%, 29%)
HSVhsv(234, 82%, 49%)
CMYKcmyk(81.7%, 73.8%, 0%, 50.6%)
CIE-LABlab(19.12, 31.64, -53.18)
CIE-LCHlch(19.12, 61.88, 300.75°)
OKLaboklab(31.58% -0.0014 -0.154)
OKLCHoklch(31.58% 0.154 269.5)
XYZxyz(4.6618, 2.7757, 20.0247)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17217E #7E7417
analogous
#17557E #17217E #41177E
triadic
#17217E #7E1721 #217E17
tetradic
#17217E #7E1755 #7E7417 #177E41
square
#17217E #7E1755 #7E7417 #177E41
split-complementary
#17217E #7E4117 #557E17
monochromatic
#05071A #0E134A #17217E #202FB2 #3545DA

Accessibility & contrast

On white

13.50
#17217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#17217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17217E
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17217E#FFFFFF#000000##FFFFFF
##17217E1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #17217e;
/* rgb */ color: rgb(23, 33, 126);
/* oklch */ color: oklch(31.6% 0.154 269.5);
Tailwind
colors: {
  custom: {
    50: '#685da4',
    500: '#17217e',
    950: '#000000',
  },
}
SCSS
$custom: #17217e;
$custom-light: #685da4;
$custom-dark: #000000;
JSON
{
  "hex": "#17217e",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 234.175,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31579,
    "c": 0.15405,
    "h": 269.5
  },
  "luminance": 0.02776
}

Semantic roles & 50–950 ramp

primary
#17217E
secondary
#B3A73E
accent
#DB3CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #17217E

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

Preview Lab → · Contrast checker → · Palette generator →

#17217E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva