#17158F#17158F

#17158F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.186 H 269.7°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#17158F
RGBrgb(23, 21, 143)
HSLhsl(241, 74%, 32%)
HSVhsv(241, 85%, 56%)
CMYKcmyk(83.9%, 85.3%, 0%, 43.9%)
CIE-LABlab(18.80, 44.28, -64.40)
CIE-LCHlch(18.80, 78.16, 304.51°)
OKLaboklab(31.95% -0.0009 -0.1864)
OKLCHoklch(31.95% 0.186 269.7)
XYZxyz(5.5778, 2.7010, 26.2086)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17158F #8D8F15
analogous
#15508F #17158F #54158F
triadic
#17158F #8F1715 #158F17
tetradic
#17158F #8F1550 #8D8F15 #158F54
square
#17158F #8F1550 #8D8F15 #158F54
split-complementary
#17158F #8F5415 #508F15
monochromatic
#060524 #0E0D5A #17158F #201DC4 #3F3CE2

Accessibility & contrast

On white

13.63
#17158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#17158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17158F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17158F#FFFFFF#000000##FFFFFF
##17158F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #17158f;
/* rgb */ color: rgb(23, 21, 143);
/* oklch */ color: oklch(31.9% 0.186 269.7);
Tailwind
colors: {
  custom: {
    50: '#6e57b1',
    500: '#17158f',
    950: '#000000',
  },
}
SCSS
$custom: #17158f;
$custom-light: #6e57b1;
$custom-dark: #000000;
JSON
{
  "hex": "#17158f",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 240.984,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.31947,
    "c": 0.18642,
    "h": 269.7
  },
  "luminance": 0.02702
}

Semantic roles & 50–950 ramp

primary
#17158F
secondary
#C0C23E
accent
#F137EE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #17158F

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

Preview Lab → · Contrast checker → · Palette generator →

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