#15158D#15158D

#15158D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.185 H 269.2°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#15158D
RGBrgb(21, 21, 141)
HSLhsl(240, 74%, 32%)
HSVhsv(240, 85%, 55%)
CMYKcmyk(85.1%, 85.1%, 0%, 44.7%)
CIE-LABlab(18.45, 43.55, -63.76)
CIE-LCHlch(18.45, 77.21, 304.34°)
OKLaboklab(31.6% -0.0027 -0.1846)
OKLCHoklch(31.6% 0.185 269.2)
XYZxyz(5.3835, 2.6182, 25.4158)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15158D #8D8D15
analogous
#15518D #15158D #51158D
triadic
#15158D #8D1515 #158D15
tetradic
#15158D #8D1551 #8D8D15 #158D51
square
#15158D #8D1551 #8D8D15 #158D51
split-complementary
#15158D #8D5115 #518D15
monochromatic
#050522 #0D0D58 #15158D #1D1DC2 #3B3BE2

Accessibility & contrast

On white

13.78
#15158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#15158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15158D
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15158D#FFFFFF#000000##FFFFFF
##15158D1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003390
Deuteranopia (green-blind)
#00268B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #15158d;
/* rgb */ color: rgb(21, 21, 141);
/* oklch */ color: oklch(31.6% 0.185 269.2);
Tailwind
colors: {
  custom: {
    50: '#6d56b0',
    500: '#15158d',
    950: '#000000',
  },
}
SCSS
$custom: #15158d;
$custom-light: #6d56b0;
$custom-dark: #000000;
JSON
{
  "hex": "#15158d",
  "rgb": {
    "r": 21,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 240,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.31597,
    "c": 0.1846,
    "h": 269.2
  },
  "luminance": 0.02619
}

Semantic roles & 50–950 ramp

primary
#15158D
secondary
#C1C13D
accent
#F137F1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #15158D

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

Preview Lab → · Contrast checker → · Palette generator →

#15158D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva