#150331#150331

#150331 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.5% C 0.086 H 294.7°. Best body text is #FFFFFF at 19.28:1 contrast (WCAG AA passes).

Color values

HEX#150331
RGBrgb(21, 3, 49)
HSLhsl(263, 88%, 10%)
HSVhsv(263, 94%, 19%)
CMYKcmyk(57.1%, 93.9%, 0%, 80.8%)
CIE-LABlab(4.03, 19.28, -25.49)
CIE-LCHlch(4.03, 31.96, 307.10°)
OKLaboklab(17.54% 0.0358 -0.0778)
OKLCHoklch(17.54% 0.086 294.7)
XYZxyz(0.8960, 0.4463, 2.9441)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150331 #1F3103
analogous
#030831 #150331 #2C0331
triadic
#150331 #311503 #033115
tetradic
#150331 #310308 #1F3103 #03312C
square
#150331 #310308 #1F3103 #03312C
split-complementary
#150331 #312C03 #083103
monochromatic
#0C021D #0C021D #150331 #2E076B #460AA4

Accessibility & contrast

On white

19.28
#150331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#150331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #150331
19.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150331#FFFFFF#000000##FFFFFF
##1503311.0019.281.0919.28
#FFFFFF19.281.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F32
Deuteranopia (green-blind)
#000D30
Tritanopia (blue-blind)
#0D0F19
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #150331;
/* rgb */ color: rgb(21, 3, 49);
/* oklch */ color: oklch(17.5% 0.086 294.7);
Tailwind
colors: {
  custom: {
    50: '#554769',
    500: '#150331',
    950: '#000000',
  },
}
SCSS
$custom: #150331;
$custom-light: #554769;
$custom-dark: #000000;
JSON
{
  "hex": "#150331",
  "rgb": {
    "r": 21,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 263.478,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.17541,
    "c": 0.0856,
    "h": 294.7
  },
  "luminance": 0.00446
}

Semantic roles & 50–950 ramp

primary
#150331
secondary
#52741B
accent
#FF29AB
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #150331

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

Preview Lab → · Contrast checker → · Palette generator →

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