#150948#150948

#150948 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.4% C 0.108 H 281.0°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#150948
RGBrgb(21, 9, 72)
HSLhsl(251, 78%, 16%)
HSVhsv(251, 88%, 28%)
CMYKcmyk(70.8%, 87.5%, 0%, 71.8%)
CIE-LABlab(7.43, 26.51, -36.57)
CIE-LCHlch(7.43, 45.17, 305.94°)
OKLaboklab(21.38% 0.0205 -0.1056)
OKLCHoklch(21.38% 0.108 281)
XYZxyz(1.5763, 0.8226, 6.2053)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150948 #3C4809
analogous
#091C48 #150948 #340948
triadic
#150948 #481509 #094815
tetradic
#150948 #48091C #3C4809 #094834
square
#150948 #48091C #3C4809 #094834
split-complementary
#150948 #483409 #1C4809
monochromatic
#08031B #08031B #150948 #25107E #3517B5

Accessibility & contrast

On white

18.03
#150948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#150948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #150948
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150948#FFFFFF#000000##FFFFFF
##1509481.0018.031.1618.03
#FFFFFF18.031.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00194A
Deuteranopia (green-blind)
#001447
Tritanopia (blue-blind)
#001C28
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #150948;
/* rgb */ color: rgb(21, 9, 72);
/* oklch */ color: oklch(21.4% 0.108 281.0);
Tailwind
colors: {
  custom: {
    50: '#5b4a7c',
    500: '#150948',
    950: '#000000',
  },
}
SCSS
$custom: #150948;
$custom-light: #5b4a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#150948",
  "rgb": {
    "r": 21,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 251.429,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21375,
    "c": 0.10757,
    "h": 281
  },
  "luminance": 0.00823
}

Semantic roles & 50–950 ramp

primary
#150948
secondary
#748527
accent
#F434D0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #150948

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

Preview Lab → · Contrast checker → · Palette generator →

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