#17157D#17157D

#17157D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.165 H 271.1°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#17157D
RGBrgb(23, 21, 125)
HSLhsl(241, 71%, 29%)
HSVhsv(241, 83%, 49%)
CMYKcmyk(81.6%, 83.2%, 0%, 51%)
CIE-LABlab(16.50, 38.39, -56.89)
CIE-LCHlch(16.50, 68.63, 304.01°)
OKLaboklab(29.69% 0.0032 -0.1647)
OKLCHoklch(29.69% 0.165 271.1)
XYZxyz(4.3219, 2.1987, 19.5947)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17157D #7B7D15
analogous
#15477D #17157D #4B157D
triadic
#17157D #7D1715 #157D17
tetradic
#17157D #7D1547 #7B7D15 #157D4B
square
#17157D #7D1547 #7B7D15 #157D4B
split-complementary
#17157D #7D4B15 #477D15
monochromatic
#05041A #0D0C49 #17157D #211EB1 #3330DC

Accessibility & contrast

On white

14.59
#17157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#17157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17157D
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17157D#FFFFFF#000000##FFFFFF
##17157D1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00237B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #17157d;
/* rgb */ color: rgb(23, 21, 125);
/* oklch */ color: oklch(29.7% 0.165 271.1);
Tailwind
colors: {
  custom: {
    50: '#6955a4',
    500: '#17157d',
    950: '#000000',
  },
}
SCSS
$custom: #17157d;
$custom-light: #6955a4;
$custom-dark: #000000;
JSON
{
  "hex": "#17157d",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 241.154,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29686,
    "c": 0.1647,
    "h": 271.1
  },
  "luminance": 0.02199
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #17157D

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

Preview Lab → · Contrast checker → · Palette generator →

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