#150A40#150A40

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

Color values

HEX#150A40
RGBrgb(21, 10, 64)
HSLhsl(252, 73%, 15%)
HSVhsv(252, 84%, 25%)
CMYKcmyk(67.2%, 84.4%, 0%, 74.9%)
CIE-LABlab(6.74, 22.84, -32.04)
CIE-LCHlch(6.74, 39.34, 305.49°)
OKLaboklab(20.57% 0.0222 -0.0927)
OKLCHoklch(20.57% 0.095 283.5)
XYZxyz(1.3429, 0.7466, 4.9228)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150A40 #35400A
analogous
#0A1A40 #150A40 #300A40
triadic
#150A40 #40150A #0A4015
tetradic
#150A40 #400A1A #35400A #0A4030
square
#150A40 #400A1A #35400A #0A4030
split-complementary
#150A40 #40300A #1A400A
monochromatic
#09041A #09041A #150A40 #261275 #381BAA

Accessibility & contrast

On white

18.27
#150A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##150A40#FFFFFF#000000##FFFFFF
##150A401.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)
#001742
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #150a40;
/* rgb */ color: rgb(21, 10, 64);
/* oklch */ color: oklch(20.6% 0.095 283.5);
Tailwind
colors: {
  custom: {
    50: '#594a75',
    500: '#150a40',
    950: '#000000',
  },
}
SCSS
$custom: #150a40;
$custom-light: #594a75;
$custom-dark: #000000;
JSON
{
  "hex": "#150a40",
  "rgb": {
    "r": 21,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 252.222,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20567,
    "c": 0.09531,
    "h": 283.5
  },
  "luminance": 0.00747
}

Semantic roles & 50–950 ramp

primary
#150A40
secondary
#6C7D29
accent
#F038CA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #150A40

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

Preview Lab → · Contrast checker → · Palette generator →

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