#17158C#17158C

#17158C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.183 H 269.9°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#17158C
RGBrgb(23, 21, 140)
HSLhsl(241, 74%, 32%)
HSVhsv(241, 85%, 55%)
CMYKcmyk(83.6%, 85%, 0%, 45.1%)
CIE-LABlab(18.41, 43.32, -63.18)
CIE-LCHlch(18.41, 76.61, 304.44°)
OKLaboklab(31.57% -0.0003 -0.1829)
OKLCHoklch(31.57% 0.183 269.9)
XYZxyz(5.3535, 2.6113, 25.0277)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17158C #8A8C15
analogous
#154F8C #17158C #53158C
triadic
#17158C #8C1715 #158C17
tetradic
#17158C #8C154F #8A8C15 #158C53
square
#17158C #8C154F #8A8C15 #158C53
split-complementary
#17158C #8C5315 #4F8C15
monochromatic
#060522 #0E0D57 #17158C #201DC1 #3D3AE1

Accessibility & contrast

On white

13.79
#17158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#17158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17158C
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17158C#FFFFFF#000000##FFFFFF
##17158C1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #17158c;
/* rgb */ color: rgb(23, 21, 140);
/* oklch */ color: oklch(31.6% 0.183 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d56af',
    500: '#17158c',
    950: '#000000',
  },
}
SCSS
$custom: #17158c;
$custom-light: #6d56af;
$custom-dark: #000000;
JSON
{
  "hex": "#17158c",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 241.008,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31567,
    "c": 0.18288,
    "h": 269.9
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#17158C
secondary
#BEC03D
accent
#F137ED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #17158C

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

Preview Lab → · Contrast checker → · Palette generator →

#17158C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva