#150C38#150C38

#150C38 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.081 H 285.9°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#150C38
RGBrgb(21, 12, 56)
HSLhsl(252, 65%, 13%)
HSVhsv(252, 79%, 22%)
CMYKcmyk(62.5%, 78.6%, 0%, 78%)
CIE-LABlab(6.39, 18.41, -26.84)
CIE-LCHlch(6.39, 32.55, 304.44°)
OKLaboklab(20.02% 0.0222 -0.0777)
OKLCHoklch(20.02% 0.081 285.9)
XYZxyz(1.1543, 0.7078, 3.8164)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150C38 #2F380C
analogous
#0C1938 #150C38 #2B0C38
triadic
#150C38 #38150C #0C3815
tetradic
#150C38 #380C19 #2F380C #0C382B
square
#150C38 #380C19 #2F380C #0C382B
split-complementary
#150C38 #382B0C #19380C
monochromatic
#090519 #090519 #150C38 #28176A #3B229D

Accessibility & contrast

On white

18.40
#150C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #150C38
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150C38#FFFFFF#000000##FFFFFF
##150C381.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#071720
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #150c38;
/* rgb */ color: rgb(21, 12, 56);
/* oklch */ color: oklch(20.0% 0.081 285.9);
Tailwind
colors: {
  custom: {
    50: '#574b6f',
    500: '#150c38',
    950: '#000000',
  },
}
SCSS
$custom: #150c38;
$custom-light: #574b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#150c38",
  "rgb": {
    "r": 21,
    "g": 12,
    "b": 56
  },
  "hsl": {
    "h": 252.273,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20016,
    "c": 0.08082,
    "h": 285.9
  },
  "luminance": 0.00708
}

Semantic roles & 50–950 ramp

primary
#150C38
secondary
#65742C
accent
#E840C5
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #150C38

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

Preview Lab → · Contrast checker → · Palette generator →

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