#150B42#150B42

#150B42 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.097 H 282.4°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#150B42
RGBrgb(21, 11, 66)
HSLhsl(251, 71%, 15%)
HSVhsv(251, 83%, 26%)
CMYKcmyk(68.2%, 83.3%, 0%, 74.1%)
CIE-LABlab(7.15, 23.11, -32.79)
CIE-LCHlch(7.15, 40.12, 305.18°)
OKLaboklab(20.96% 0.0208 -0.0947)
OKLCHoklch(20.96% 0.097 282.4)
XYZxyz(1.4120, 0.7920, 5.2317)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150B42 #38420B
analogous
#0B1C42 #150B42 #300B42
triadic
#150B42 #42150B #0B4215
tetradic
#150B42 #420B1C #38420B #0B4230
square
#150B42 #420B1C #38420B #0B4230
split-complementary
#150B42 #42300B #1C420B
monochromatic
#08041A #08041A #150B42 #261476 #361CAB

Accessibility & contrast

On white

18.13
#150B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#150B42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #150B42
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150B42#FFFFFF#000000##FFFFFF
##150B421.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #150b42;
/* rgb */ color: rgb(21, 11, 66);
/* oklch */ color: oklch(21.0% 0.097 282.4);
Tailwind
colors: {
  custom: {
    50: '#594b77',
    500: '#150b42',
    950: '#000000',
  },
}
SCSS
$custom: #150b42;
$custom-light: #594b77;
$custom-dark: #000000;
JSON
{
  "hex": "#150b42",
  "rgb": {
    "r": 21,
    "g": 11,
    "b": 66
  },
  "hsl": {
    "h": 250.909,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.20955,
    "c": 0.09694,
    "h": 282.4
  },
  "luminance": 0.00792
}

Semantic roles & 50–950 ramp

primary
#150B42
secondary
#6F7F2A
accent
#EE3ACD
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #150B42

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

Preview Lab → · Contrast checker → · Palette generator →

#150B42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva