#15158F#15158F

#15158F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.187 H 269.1°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#15158F
RGBrgb(21, 21, 143)
HSLhsl(240, 74%, 32%)
HSVhsv(240, 85%, 56%)
CMYKcmyk(85.3%, 85.3%, 0%, 43.9%)
CIE-LABlab(18.71, 44.19, -64.57)
CIE-LCHlch(18.71, 78.24, 304.39°)
OKLaboklab(31.85% -0.0031 -0.1869)
OKLCHoklch(31.85% 0.187 269.1)
XYZxyz(5.5337, 2.6783, 26.2066)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15158F #8F8F15
analogous
#15528F #15158F #52158F
triadic
#15158F #8F1515 #158F15
tetradic
#15158F #8F1552 #8F8F15 #158F52
square
#15158F #8F1552 #8F8F15 #158F52
split-complementary
#15158F #8F5215 #528F15
monochromatic
#050524 #0D0D5A #15158F #1D1DC4 #3C3CE2

Accessibility & contrast

On white

13.67
#15158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#15158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15158F
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15158F#FFFFFF#000000##FFFFFF
##15158F1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #15158f;
/* rgb */ color: rgb(21, 21, 143);
/* oklch */ color: oklch(31.9% 0.187 269.1);
Tailwind
colors: {
  custom: {
    50: '#6e57b1',
    500: '#15158f',
    950: '#000000',
  },
}
SCSS
$custom: #15158f;
$custom-light: #6e57b1;
$custom-dark: #000000;
JSON
{
  "hex": "#15158f",
  "rgb": {
    "r": 21,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 240,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.31852,
    "c": 0.18696,
    "h": 269.1
  },
  "luminance": 0.02679
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #15158F

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

Preview Lab → · Contrast checker → · Palette generator →

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