#150538#150538

#150538 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.091 H 289.2°. Best body text is #FFFFFF at 18.91:1 contrast (WCAG AA passes).

Color values

HEX#150538
RGBrgb(21, 5, 56)
HSLhsl(259, 84%, 12%)
HSVhsv(259, 91%, 22%)
CMYKcmyk(62.5%, 91.1%, 0%, 78%)
CIE-LABlab(5.00, 21.80, -29.10)
CIE-LCHlch(5.00, 36.36, 306.83°)
OKLaboklab(18.78% 0.0301 -0.0861)
OKLCHoklch(18.78% 0.091 289.2)
XYZxyz(1.0771, 0.5534, 3.7907)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150538 #283805
analogous
#050E38 #150538 #2F0538
triadic
#150538 #381505 #053815
tetradic
#150538 #38050E #283805 #05382F
square
#150538 #38050E #283805 #05382F
split-complementary
#150538 #382F05 #0E3805
monochromatic
#0B031C #0B031C #150538 #2A0A70 #3F0FA8

Accessibility & contrast

On white

18.91
#150538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#150538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #150538
18.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150538#FFFFFF#000000##FFFFFF
##1505381.0018.911.1118.91
#FFFFFF18.911.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001239
Deuteranopia (green-blind)
#001037
Tritanopia (blue-blind)
#07131E
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #150538;
/* rgb */ color: rgb(21, 5, 56);
/* oklch */ color: oklch(18.8% 0.091 289.2);
Tailwind
colors: {
  custom: {
    50: '#57486f',
    500: '#150538',
    950: '#000000',
  },
}
SCSS
$custom: #150538;
$custom-light: #57486f;
$custom-dark: #000000;
JSON
{
  "hex": "#150538",
  "rgb": {
    "r": 21,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 258.824,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.18777,
    "c": 0.09118,
    "h": 289.2
  },
  "luminance": 0.00553
}

Semantic roles & 50–950 ramp

primary
#150538
secondary
#5D7920
accent
#FA2EBA
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030007
muted
#78777A

Preview Lab

Preview with #150538

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

Preview Lab → · Contrast checker → · Palette generator →

#150538 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva