#17157E#17157E

#17157E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.166 H 271.0°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#17157E
RGBrgb(23, 21, 126)
HSLhsl(241, 71%, 29%)
HSVhsv(241, 83%, 49%)
CMYKcmyk(81.7%, 83.3%, 0%, 50.6%)
CIE-LABlab(16.62, 38.72, -57.31)
CIE-LCHlch(16.62, 69.17, 304.04°)
OKLaboklab(29.81% 0.003 -0.1659)
OKLCHoklch(29.81% 0.166 271)
XYZxyz(4.3861, 2.2244, 19.9328)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17157E #7C7E15
analogous
#15487E #17157E #4C157E
triadic
#17157E #7E1715 #157E17
tetradic
#17157E #7E1548 #7C7E15 #157E4C
square
#17157E #7E1548 #7C7E15 #157E4C
split-complementary
#17157E #7E4C15 #487E15
monochromatic
#05041A #0D0C4A #17157E #211EB2 #3431DD

Accessibility & contrast

On white

14.53
#17157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#17157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17157E
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17157E#FFFFFF#000000##FFFFFF
##17157E1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #17157e;
/* rgb */ color: rgb(23, 21, 126);
/* oklch */ color: oklch(29.8% 0.166 271.0);
Tailwind
colors: {
  custom: {
    50: '#6a55a5',
    500: '#17157e',
    950: '#000000',
  },
}
SCSS
$custom: #17157e;
$custom-light: #6a55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#17157e",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 241.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.2981,
    "c": 0.16594,
    "h": 271
  },
  "luminance": 0.02225
}

Semantic roles & 50–950 ramp

primary
#17157E
secondary
#B1B33C
accent
#EE3AEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #17157E

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

Preview Lab → · Contrast checker → · Palette generator →

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