#17218E#17218E

#17218E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.175 H 268.8°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#17218E
RGBrgb(23, 33, 142)
HSLhsl(235, 72%, 32%)
HSVhsv(235, 84%, 56%)
CMYKcmyk(83.8%, 76.8%, 0%, 44.3%)
CIE-LABlab(20.91, 37.49, -60.28)
CIE-LCHlch(20.91, 70.99, 301.88°)
OKLaboklab(33.39% -0.0037 -0.1747)
OKLCHoklch(33.39% 0.175 268.8)
XYZxyz(5.7780, 3.2222, 25.9034)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17218E #8E8417
analogous
#175D8E #17218E #49178E
triadic
#17218E #8E1721 #218E17
tetradic
#17218E #8E175D #8E8417 #178E49
square
#17218E #8E175D #8E8417 #178E49
split-complementary
#17218E #8E4917 #5D8E17
monochromatic
#060925 #0E1559 #17218E #202DC3 #3F4DE0

Accessibility & contrast

On white

12.77
#17218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#17218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17218E
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17218E#FFFFFF#000000##FFFFFF
##17218E1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #17218e;
/* rgb */ color: rgb(23, 33, 142);
/* oklch */ color: oklch(33.4% 0.175 268.8);
Tailwind
colors: {
  custom: {
    50: '#6d5db0',
    500: '#17218e',
    950: '#000000',
  },
}
SCSS
$custom: #17218e;
$custom-light: #6d5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#17218e",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 234.958,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33389,
    "c": 0.17472,
    "h": 268.8
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#17218E
secondary
#C0B640
accent
#E039EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #17218E

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

Preview Lab → · Contrast checker → · Palette generator →

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