#15178F#15178F

#15178F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.185 H 268.9°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#15178F
RGBrgb(21, 23, 143)
HSLhsl(239, 74%, 32%)
HSVhsv(239, 85%, 56%)
CMYKcmyk(85.3%, 83.9%, 0%, 43.9%)
CIE-LABlab(19.03, 43.23, -64.03)
CIE-LCHlch(19.03, 77.25, 304.03°)
OKLaboklab(32.08% -0.0034 -0.1854)
OKLCHoklch(32.08% 0.185 268.9)
XYZxyz(5.5719, 2.7547, 26.2193)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15178F #8F8D15
analogous
#15548F #15178F #50158F
triadic
#15178F #8F1517 #178F15
tetradic
#15178F #8F1554 #8F8D15 #158F50
square
#15178F #8F1554 #8F8D15 #158F50
split-complementary
#15178F #8F5015 #548F15
monochromatic
#050624 #0D0E5A #15178F #1D20C4 #3C3FE2

Accessibility & contrast

On white

13.54
#15178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#15178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15178F
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15178F#FFFFFF#000000##FFFFFF
##15178F1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #15178f;
/* rgb */ color: rgb(21, 23, 143);
/* oklch */ color: oklch(32.1% 0.185 268.9);
Tailwind
colors: {
  custom: {
    50: '#6e58b1',
    500: '#15178f',
    950: '#000000',
  },
}
SCSS
$custom: #15178f;
$custom-light: #6e58b1;
$custom-dark: #000000;
JSON
{
  "hex": "#15178f",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 239.016,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32079,
    "c": 0.18543,
    "h": 268.9
  },
  "luminance": 0.02755
}

Semantic roles & 50–950 ramp

primary
#15178F
secondary
#C2C03E
accent
#EE37F1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #15178F

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

Preview Lab → · Contrast checker → · Palette generator →

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