#150838#150838

#150838 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.087 H 287.9°. Best body text is #FFFFFF at 18.69:1 contrast (WCAG AA passes).

Color values

HEX#150838
RGBrgb(21, 8, 56)
HSLhsl(256, 75%, 13%)
HSVhsv(256, 86%, 22%)
CMYKcmyk(62.5%, 85.7%, 0%, 78%)
CIE-LABlab(5.59, 20.38, -28.15)
CIE-LCHlch(5.59, 34.75, 305.90°)
OKLaboklab(19.32% 0.0266 -0.0824)
OKLCHoklch(19.32% 0.087 287.9)
XYZxyz(1.1097, 0.6186, 3.8015)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150838 #2B3808
analogous
#081338 #150838 #2D0838
triadic
#150838 #381508 #083815
tetradic
#150838 #380813 #2B3808 #08382D
square
#150838 #380813 #2B3808 #08382D
split-complementary
#150838 #382D08 #133808
monochromatic
#0A041B #0A041B #150838 #29106E #3D17A3

Accessibility & contrast

On white

18.69
#150838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#150838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #150838
18.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150838#FFFFFF#000000##FFFFFF
##1508381.0018.691.1218.69
#FFFFFF18.691.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001339
Deuteranopia (green-blind)
#001137
Tritanopia (blue-blind)
#07151F
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #150838;
/* rgb */ color: rgb(21, 8, 56);
/* oklch */ color: oklch(19.3% 0.087 287.9);
Tailwind
colors: {
  custom: {
    50: '#57496f',
    500: '#150838',
    950: '#000000',
  },
}
SCSS
$custom: #150838;
$custom-light: #57496f;
$custom-dark: #000000;
JSON
{
  "hex": "#150838",
  "rgb": {
    "r": 21,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 256.25,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.19319,
    "c": 0.08657,
    "h": 287.9
  },
  "luminance": 0.00619
}

Semantic roles & 50–950 ramp

primary
#150838
secondary
#617725
accent
#F236BF
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #150838

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

Preview Lab → · Contrast checker → · Palette generator →

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