#150A42#150A42

#150A42 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.098 H 282.7°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#150A42
RGBrgb(21, 10, 66)
HSLhsl(252, 74%, 15%)
HSVhsv(252, 85%, 26%)
CMYKcmyk(68.2%, 84.8%, 0%, 74.1%)
CIE-LABlab(6.95, 23.65, -33.12)
CIE-LCHlch(6.95, 40.70, 305.54°)
OKLaboklab(20.8% 0.0217 -0.0957)
OKLCHoklch(20.8% 0.098 282.7)
XYZxyz(1.4009, 0.7698, 5.2280)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150A42 #37420A
analogous
#0A1B42 #150A42 #310A42
triadic
#150A42 #42150A #0A4215
tetradic
#150A42 #420A1B #37420A #0A4231
square
#150A42 #420A1B #37420A #0A4231
split-complementary
#150A42 #42310A #1B420A
monochromatic
#08041B #08041B #150A42 #261277 #371AAC

Accessibility & contrast

On white

18.20
#150A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#150A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #150A42
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150A42#FFFFFF#000000##FFFFFF
##150A421.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001341
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #150a42;
/* rgb */ color: rgb(21, 10, 66);
/* oklch */ color: oklch(20.8% 0.098 282.7);
Tailwind
colors: {
  custom: {
    50: '#594a77',
    500: '#150a42',
    950: '#000000',
  },
}
SCSS
$custom: #150a42;
$custom-light: #594a77;
$custom-dark: #000000;
JSON
{
  "hex": "#150a42",
  "rgb": {
    "r": 21,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 251.786,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.20801,
    "c": 0.09814,
    "h": 282.7
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#150A42
secondary
#6E7F29
accent
#F037CC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #150A42

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

Preview Lab → · Contrast checker → · Palette generator →

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