#150F31#150F31

#150F31 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.065 H 287.1°. Best body text is #FFFFFF at 18.35:1 contrast (WCAG AA passes).

Color values

HEX#150F31
RGBrgb(21, 15, 49)
HSLhsl(251, 53%, 13%)
HSVhsv(251, 69%, 19%)
CMYKcmyk(57.1%, 69.4%, 0%, 80.8%)
CIE-LABlab(6.53, 13.69, -21.50)
CIE-LCHlch(6.53, 25.49, 302.49°)
OKLaboklab(19.92% 0.019 -0.0619)
OKLCHoklch(19.92% 0.065 287.1)
XYZxyz(1.0343, 0.7228, 2.9901)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150F31 #2B310F
analogous
#0F1A31 #150F31 #260F31
triadic
#150F31 #31150F #0F3115
tetradic
#150F31 #310F1A #2B310F #0F3126
square
#150F31 #310F1A #2B310F #0F3126
split-complementary
#150F31 #31260F #1A310F
monochromatic
#0A0717 #0A0717 #150F31 #291D60 #3D2C8F

Accessibility & contrast

On white

18.35
#150F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#150F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #150F31
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150F31#FFFFFF#000000##FFFFFF
##150F311.0018.351.1418.35
#FFFFFF18.351.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#001430
Tritanopia (blue-blind)
#0C171E
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #150f31;
/* rgb */ color: rgb(21, 15, 49);
/* oklch */ color: oklch(19.9% 0.065 287.1);
Tailwind
colors: {
  custom: {
    50: '#554d69',
    500: '#150f31',
    950: '#000000',
  },
}
SCSS
$custom: #150f31;
$custom-light: #554d69;
$custom-dark: #000000;
JSON
{
  "hex": "#150f31",
  "rgb": {
    "r": 21,
    "g": 15,
    "b": 49
  },
  "hsl": {
    "h": 250.588,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.19921,
    "c": 0.06476,
    "h": 287.1
  },
  "luminance": 0.00723
}

Semantic roles & 50–950 ramp

primary
#150F31
secondary
#616B31
accent
#DD4BC3
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #150F31

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

Preview Lab → · Contrast checker → · Palette generator →

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