#17156E#17156E

#17156E is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.146 H 272.6°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#17156E
RGBrgb(23, 21, 110)
HSLhsl(241, 68%, 26%)
HSVhsv(241, 81%, 43%)
CMYKcmyk(79.1%, 80.9%, 0%, 56.9%)
CIE-LABlab(14.65, 33.22, -50.28)
CIE-LCHlch(14.65, 60.26, 303.45°)
OKLaboklab(27.85% 0.0066 -0.1455)
OKLCHoklch(27.85% 0.146 272.6)
XYZxyz(3.4350, 1.8439, 14.9237)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17156E #6C6E15
analogous
#153F6E #17156E #43156E
triadic
#17156E #6E1715 #156E17
tetradic
#17156E #6E153F #6C6E15 #156E43
square
#17156E #6E153F #6C6E15 #156E43
split-complementary
#17156E #6E4315 #3F6E15
monochromatic
#05051A #0C0B3B #17156E #221FA1 #2C29D5

Accessibility & contrast

On white

15.34
#17156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#17156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17156E
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17156E#FFFFFF#000000##FFFFFF
##17156E1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002971
Deuteranopia (green-blind)
#00216C
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #17156e;
/* rgb */ color: rgb(23, 21, 110);
/* oklch */ color: oklch(27.9% 0.146 272.6);
Tailwind
colors: {
  custom: {
    50: '#655499',
    500: '#17156e',
    950: '#000000',
  },
}
SCSS
$custom: #17156e;
$custom-light: #655499;
$custom-dark: #000000;
JSON
{
  "hex": "#17156e",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 241.348,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27851,
    "c": 0.14567,
    "h": 272.6
  },
  "luminance": 0.01844
}

Semantic roles & 50–950 ramp

primary
#17156E
secondary
#A2A43A
accent
#EB3DE7
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #17156E

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

Preview Lab → · Contrast checker → · Palette generator →

#17156E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva