#15176C#15176C

#15176C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.8% C 0.142 H 271.5°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#15176C
RGBrgb(21, 23, 108)
HSLhsl(239, 67%, 25%)
HSVhsv(239, 81%, 42%)
CMYKcmyk(80.6%, 78.7%, 0%, 57.6%)
CIE-LABlab(14.70, 31.12, -48.88)
CIE-LCHlch(14.70, 57.95, 302.48°)
OKLaboklab(27.79% 0.0037 -0.1415)
OKLCHoklch(27.79% 0.142 271.5)
XYZxyz(3.3215, 1.8546, 14.3674)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15176C #6C6A15
analogous
#15426C #15176C #3F156C
triadic
#15176C #6C1517 #176C15
tetradic
#15176C #6C1542 #6C6A15 #156C3F
square
#15176C #6C1542 #6C6A15 #156C3F
split-complementary
#15176C #6C3F15 #426C15
monochromatic
#05051A #0B0C39 #15176C #1F229F #292DD2

Accessibility & contrast

On white

15.32
#15176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#15176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15176C
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15176C#FFFFFF#000000##FFFFFF
##15176C1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #15176c;
/* rgb */ color: rgb(21, 23, 108);
/* oklch */ color: oklch(27.8% 0.142 271.5);
Tailwind
colors: {
  custom: {
    50: '#645597',
    500: '#15176c',
    950: '#000000',
  },
}
SCSS
$custom: #15176c;
$custom-light: #645597;
$custom-dark: #000000;
JSON
{
  "hex": "#15176c",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 238.621,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27789,
    "c": 0.14157,
    "h": 271.5
  },
  "luminance": 0.01855
}

Semantic roles & 50–950 ramp

primary
#15176C
secondary
#A3A03A
accent
#E63DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #15176C

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

Preview Lab → · Contrast checker → · Palette generator →

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