#17157F#17157F

#17157F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.167 H 270.9°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#17157F
RGBrgb(23, 21, 127)
HSLhsl(241, 72%, 29%)
HSVhsv(241, 83%, 50%)
CMYKcmyk(81.9%, 83.5%, 0%, 50.2%)
CIE-LABlab(16.75, 39.06, -57.74)
CIE-LCHlch(16.75, 69.71, 304.08°)
OKLaboklab(29.93% 0.0027 -0.1671)
OKLCHoklch(29.93% 0.167 270.9)
XYZxyz(4.4510, 2.2503, 20.2743)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17157F #7D7F15
analogous
#15487F #17157F #4C157F
triadic
#17157F #7F1715 #157F17
tetradic
#17157F #7F1548 #7D7F15 #157F4C
square
#17157F #7F1548 #7D7F15 #157F4C
split-complementary
#17157F #7F4C15 #487F15
monochromatic
#05041A #0D0C4A #17157F #211EB4 #3531DD

Accessibility & contrast

On white

14.48
#17157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17157F
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17157F#FFFFFF#000000##FFFFFF
##17157F1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #17157f;
/* rgb */ color: rgb(23, 21, 127);
/* oklch */ color: oklch(29.9% 0.167 270.9);
Tailwind
colors: {
  custom: {
    50: '#6a55a5',
    500: '#17157f',
    950: '#000000',
  },
}
SCSS
$custom: #17157f;
$custom-light: #6a55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#17157f",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 241.132,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.29934,
    "c": 0.16717,
    "h": 270.9
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#17157F
secondary
#B2B43C
accent
#EE39EB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #17157F

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

Preview Lab → · Contrast checker → · Palette generator →

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