#150C42#150C42

#150C42 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.096 H 282.0°. Best body text is #FFFFFF at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#150C42
RGBrgb(21, 12, 66)
HSLhsl(250, 69%, 15%)
HSVhsv(250, 82%, 26%)
CMYKcmyk(68.2%, 81.8%, 0%, 74.1%)
CIE-LABlab(7.37, 22.53, -32.44)
CIE-LCHlch(7.37, 39.50, 304.79°)
OKLaboklab(21.12% 0.02 -0.0936)
OKLCHoklch(21.12% 0.096 282)
XYZxyz(1.4238, 0.8156, 5.2356)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150C42 #39420C
analogous
#0C1E42 #150C42 #300C42
triadic
#150C42 #42150C #0C4215
tetradic
#150C42 #420C1E #39420C #0C4230
square
#150C42 #420C1E #39420C #0C4230
split-complementary
#150C42 #42300C #1E420C
monochromatic
#08051A #08051A #150C42 #251576 #361FAA

Accessibility & contrast

On white

18.05
#150C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #150C42
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150C42#FFFFFF#000000##FFFFFF
##150C421.0018.051.1618.05
#FFFFFF18.051.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #150c42;
/* rgb */ color: rgb(21, 12, 66);
/* oklch */ color: oklch(21.1% 0.096 282.0);
Tailwind
colors: {
  custom: {
    50: '#594c77',
    500: '#150c42',
    950: '#000000',
  },
}
SCSS
$custom: #150c42;
$custom-light: #594c77;
$custom-dark: #000000;
JSON
{
  "hex": "#150c42",
  "rgb": {
    "r": 21,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 250,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21116,
    "c": 0.09569,
    "h": 282
  },
  "luminance": 0.00816
}

Semantic roles & 50–950 ramp

primary
#150C42
secondary
#707E2C
accent
#EC3CCF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #150C42

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

Preview Lab → · Contrast checker → · Palette generator →

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