#17157C#17157C

#17157C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.163 H 271.2°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#17157C
RGBrgb(23, 21, 124)
HSLhsl(241, 71%, 28%)
HSVhsv(241, 83%, 49%)
CMYKcmyk(81.5%, 83.1%, 0%, 51.4%)
CIE-LABlab(16.37, 38.05, -56.46)
CIE-LCHlch(16.37, 68.08, 303.98°)
OKLaboklab(29.56% 0.0034 -0.1634)
OKLCHoklch(29.56% 0.163 271.2)
XYZxyz(4.2584, 2.1732, 19.2599)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17157C #7A7C15
analogous
#15467C #17157C #4A157C
triadic
#17157C #7C1715 #157C17
tetradic
#17157C #7C1546 #7A7C15 #157C4A
square
#17157C #7C1546 #7A7C15 #157C4A
split-complementary
#17157C #7C4A15 #467C15
monochromatic
#05041A #0D0C48 #17157C #211EB0 #3330DC

Accessibility & contrast

On white

14.64
#17157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17157C
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17157C#FFFFFF#000000##FFFFFF
##17157C1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00237A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #17157c;
/* rgb */ color: rgb(23, 21, 124);
/* oklch */ color: oklch(29.6% 0.163 271.2);
Tailwind
colors: {
  custom: {
    50: '#6955a3',
    500: '#17157c',
    950: '#000000',
  },
}
SCSS
$custom: #17157c;
$custom-light: #6955a3;
$custom-dark: #000000;
JSON
{
  "hex": "#17157c",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 241.165,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29562,
    "c": 0.16347,
    "h": 271.2
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#17157C
secondary
#AFB13C
accent
#EE3AEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #17157C

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

Preview Lab → · Contrast checker → · Palette generator →

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