#17157B#17157B

#17157B is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.162 H 271.3°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#17157B
RGBrgb(23, 21, 123)
HSLhsl(241, 71%, 28%)
HSVhsv(241, 83%, 48%)
CMYKcmyk(81.3%, 82.9%, 0%, 51.8%)
CIE-LABlab(16.25, 37.71, -56.03)
CIE-LCHlch(16.25, 67.54, 303.95°)
OKLaboklab(29.44% 0.0036 -0.1622)
OKLCHoklch(29.44% 0.162 271.3)
XYZxyz(4.1955, 2.1481, 18.9286)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17157B #797B15
analogous
#15467B #17157B #4A157B
triadic
#17157B #7B1715 #157B17
tetradic
#17157B #7B1546 #797B15 #157B4A
square
#17157B #7B1546 #797B15 #157B4A
split-complementary
#17157B #7B4A15 #467B15
monochromatic
#05041A #0D0C47 #17157B #211EAF #322FDB

Accessibility & contrast

On white

14.69
#17157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#17157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17157B
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17157B#FFFFFF#000000##FFFFFF
##17157B1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002379
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #17157b;
/* rgb */ color: rgb(23, 21, 123);
/* oklch */ color: oklch(29.4% 0.162 271.3);
Tailwind
colors: {
  custom: {
    50: '#6955a2',
    500: '#17157b',
    950: '#000000',
  },
}
SCSS
$custom: #17157b;
$custom-light: #6955a2;
$custom-dark: #000000;
JSON
{
  "hex": "#17157b",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 241.176,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29438,
    "c": 0.16222,
    "h": 271.3
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#17157B
secondary
#AEB03B
accent
#EE3AEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #17157B

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

Preview Lab → · Contrast checker → · Palette generator →

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