#17157A#17157A

#17157A is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.161 H 271.4°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#17157A
RGBrgb(23, 21, 122)
HSLhsl(241, 71%, 28%)
HSVhsv(241, 83%, 48%)
CMYKcmyk(81.1%, 82.8%, 0%, 52.2%)
CIE-LABlab(16.12, 37.37, -55.59)
CIE-LCHlch(16.12, 66.99, 303.91°)
OKLaboklab(29.32% 0.0039 -0.1609)
OKLCHoklch(29.32% 0.161 271.4)
XYZxyz(4.1332, 2.1232, 18.6006)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17157A #787A15
analogous
#15457A #17157A #49157A
triadic
#17157A #7A1715 #157A17
tetradic
#17157A #7A1545 #787A15 #157A49
square
#17157A #7A1545 #787A15 #157A49
split-complementary
#17157A #7A4915 #457A15
monochromatic
#05041A #0D0C46 #17157A #211EAE #322EDB

Accessibility & contrast

On white

14.74
#17157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#17157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17157A
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17157A#FFFFFF#000000##FFFFFF
##17157A1.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #17157a;
/* rgb */ color: rgb(23, 21, 122);
/* oklch */ color: oklch(29.3% 0.161 271.4);
Tailwind
colors: {
  custom: {
    50: '#6855a2',
    500: '#17157a',
    950: '#000000',
  },
}
SCSS
$custom: #17157a;
$custom-light: #6855a2;
$custom-dark: #000000;
JSON
{
  "hex": "#17157a",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 241.188,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29315,
    "c": 0.16098,
    "h": 271.4
  },
  "luminance": 0.02124
}

Semantic roles & 50–950 ramp

primary
#17157A
secondary
#ADAF3B
accent
#ED3AEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #17157A

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

Preview Lab → · Contrast checker → · Palette generator →

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