#150842#150842

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

Color values

HEX#150842
RGBrgb(21, 8, 66)
HSLhsl(253, 78%, 15%)
HSVhsv(253, 88%, 26%)
CMYKcmyk(68.2%, 87.9%, 0%, 74.1%)
CIE-LABlab(6.56, 24.71, -33.76)
CIE-LCHlch(6.56, 41.84, 306.20°)
OKLaboklab(20.49% 0.0233 -0.0978)
OKLCHoklch(20.49% 0.101 283.4)
XYZxyz(1.3792, 0.7263, 5.2207)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150842 #354208
analogous
#081842 #150842 #320842
triadic
#150842 #421508 #084215
tetradic
#150842 #420818 #354208 #084232
square
#150842 #420818 #354208 #084232
split-complementary
#150842 #423208 #184208
monochromatic
#09031B #09031B #150842 #260F79 #3815AF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##150842#FFFFFF#000000##FFFFFF
##1508421.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)
#001644
Deuteranopia (green-blind)
#001341
Tritanopia (blue-blind)
#001925
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #150842;
/* rgb */ color: rgb(21, 8, 66);
/* oklch */ color: oklch(20.5% 0.101 283.4);
Tailwind
colors: {
  custom: {
    50: '#5a4977',
    500: '#150842',
    950: '#000000',
  },
}
SCSS
$custom: #150842;
$custom-light: #5a4977;
$custom-dark: #000000;
JSON
{
  "hex": "#150842",
  "rgb": {
    "r": 21,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 253.448,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20494,
    "c": 0.10055,
    "h": 283.4
  },
  "luminance": 0.00726
}

Semantic roles & 50–950 ramp

primary
#150842
secondary
#6C8025
accent
#F533C9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #150842

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

Preview Lab → · Contrast checker → · Palette generator →

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