#150940#150940

#150940 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.097 H 283.9°. Best body text is #FFFFFF at 18.34:1 contrast (WCAG AA passes).

Color values

HEX#150940
RGBrgb(21, 9, 64)
HSLhsl(253, 75%, 14%)
HSVhsv(253, 86%, 25%)
CMYKcmyk(67.2%, 85.9%, 0%, 74.9%)
CIE-LABlab(6.55, 23.36, -32.36)
CIE-LCHlch(6.55, 39.91, 305.83°)
OKLaboklab(20.41% 0.0231 -0.0937)
OKLCHoklch(20.41% 0.097 283.9)
XYZxyz(1.3321, 0.7249, 4.9192)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150940 #344009
analogous
#091940 #150940 #310940
triadic
#150940 #401509 #094015
tetradic
#150940 #400919 #344009 #094031
square
#150940 #400919 #344009 #094031
split-complementary
#150940 #403109 #194009
monochromatic
#09041B #09041B #150940 #271176 #3818AB

Accessibility & contrast

On white

18.34
#150940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #150940
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150940#FFFFFF#000000##FFFFFF
##1509401.0018.341.1518.34
#FFFFFF18.341.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #150940;
/* rgb */ color: rgb(21, 9, 64);
/* oklch */ color: oklch(20.4% 0.097 283.9);
Tailwind
colors: {
  custom: {
    50: '#594a75',
    500: '#150940',
    950: '#000000',
  },
}
SCSS
$custom: #150940;
$custom-light: #594a75;
$custom-dark: #000000;
JSON
{
  "hex": "#150940",
  "rgb": {
    "r": 21,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 253.091,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20411,
    "c": 0.09654,
    "h": 283.9
  },
  "luminance": 0.00725
}

Semantic roles & 50–950 ramp

primary
#150940
secondary
#6B7E27
accent
#F236C9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #150940

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

Preview Lab → · Contrast checker → · Palette generator →

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