#150942#150942

#150942 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.099 H 283.1°. Best body text is #FFFFFF at 18.27:1 contrast (WCAG AA passes).

Color values

HEX#150942
RGBrgb(21, 9, 66)
HSLhsl(253, 76%, 15%)
HSVhsv(253, 86%, 26%)
CMYKcmyk(68.2%, 86.4%, 0%, 74.1%)
CIE-LABlab(6.76, 24.18, -33.44)
CIE-LCHlch(6.76, 41.26, 305.87°)
OKLaboklab(20.65% 0.0225 -0.0968)
OKLCHoklch(20.65% 0.099 283.1)
XYZxyz(1.3900, 0.7481, 5.2243)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150942 #364209
analogous
#091942 #150942 #320942
triadic
#150942 #421509 #094215
tetradic
#150942 #420919 #364209 #094232
square
#150942 #420919 #364209 #094232
split-complementary
#150942 #423209 #194209
monochromatic
#09041B #09041B #150942 #261078 #3718AE

Accessibility & contrast

On white

18.27
#150942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#150942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #150942
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150942#FFFFFF#000000##FFFFFF
##1509421.0018.271.1518.27
#FFFFFF18.271.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #150942;
/* rgb */ color: rgb(21, 9, 66);
/* oklch */ color: oklch(20.6% 0.099 283.1);
Tailwind
colors: {
  custom: {
    50: '#5a4a77',
    500: '#150942',
    950: '#000000',
  },
}
SCSS
$custom: #150942;
$custom-light: #5a4a77;
$custom-dark: #000000;
JSON
{
  "hex": "#150942",
  "rgb": {
    "r": 21,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 252.632,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20648,
    "c": 0.09933,
    "h": 283.1
  },
  "luminance": 0.00748
}

Semantic roles & 50–950 ramp

primary
#150942
secondary
#6D8027
accent
#F335CB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #150942

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

Preview Lab → · Contrast checker → · Palette generator →

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