#150C40#150C40

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

Color values

HEX#150C40
RGBrgb(21, 12, 64)
HSLhsl(250, 68%, 15%)
HSVhsv(250, 81%, 25%)
CMYKcmyk(67.2%, 81.2%, 0%, 74.9%)
CIE-LABlab(7.16, 21.74, -31.36)
CIE-LCHlch(7.16, 38.16, 304.74°)
OKLaboklab(20.89% 0.0205 -0.0905)
OKLCHoklch(20.89% 0.093 282.7)
XYZxyz(1.3659, 0.7924, 4.9305)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150C40 #37400C
analogous
#0C1D40 #150C40 #2F0C40
triadic
#150C40 #40150C #0C4015
tetradic
#150C40 #400C1D #37400C #0C402F
square
#150C40 #400C1D #37400C #0C402F
split-complementary
#150C40 #402F0C #1D400C
monochromatic
#08051A #08051A #150C40 #261674 #371FA7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##150C40#FFFFFF#000000##FFFFFF
##150C401.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)
#001742
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #150c40;
/* rgb */ color: rgb(21, 12, 64);
/* oklch */ color: oklch(20.9% 0.093 282.7);
Tailwind
colors: {
  custom: {
    50: '#594b75',
    500: '#150c40',
    950: '#000000',
  },
}
SCSS
$custom: #150c40;
$custom-light: #594b75;
$custom-dark: #000000;
JSON
{
  "hex": "#150c40",
  "rgb": {
    "r": 21,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 250.385,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2089,
    "c": 0.09278,
    "h": 282.7
  },
  "luminance": 0.00793
}

Semantic roles & 50–950 ramp

primary
#150C40
secondary
#6E7C2C
accent
#EB3DCD
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #150C40

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

Preview Lab → · Contrast checker → · Palette generator →

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