#17218F#17218F

#17218F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.176 H 268.8°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#17218F
RGBrgb(23, 33, 143)
HSLhsl(235, 72%, 33%)
HSVhsv(235, 84%, 56%)
CMYKcmyk(83.9%, 76.9%, 0%, 43.9%)
CIE-LABlab(21.03, 37.85, -60.72)
CIE-LCHlch(21.03, 71.55, 301.94°)
OKLaboklab(33.51% -0.0038 -0.1759)
OKLCHoklch(33.51% 0.176 268.8)
XYZxyz(5.8534, 3.2523, 26.3005)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17218F #8F8517
analogous
#175D8F #17218F #49178F
triadic
#17218F #8F1721 #218F17
tetradic
#17218F #8F175D #8F8517 #178F49
square
#17218F #8F175D #8F8517 #178F49
split-complementary
#17218F #8F4917 #5D8F17
monochromatic
#060926 #0F155A #17218F #1F2DC4 #404DE0

Accessibility & contrast

On white

12.72
#17218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#17218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17218F
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17218F#FFFFFF#000000##FFFFFF
##17218F1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #17218f;
/* rgb */ color: rgb(23, 33, 143);
/* oklch */ color: oklch(33.5% 0.176 268.8);
Tailwind
colors: {
  custom: {
    50: '#6d5db1',
    500: '#17218f',
    950: '#000000',
  },
}
SCSS
$custom: #17218f;
$custom-light: #6d5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#17218f",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 235,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33505,
    "c": 0.17598,
    "h": 268.8
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #17218F

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

Preview Lab → · Contrast checker → · Palette generator →

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