#150226#150226

#150226 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.0% C 0.074 H 304.8°. Best body text is #FFFFFF at 19.65:1 contrast (WCAG AA passes).

Color values

HEX#150226
RGBrgb(21, 2, 38)
HSLhsl(272, 90%, 8%)
HSVhsv(272, 95%, 15%)
CMYKcmyk(44.7%, 94.7%, 0%, 85.1%)
CIE-LABlab(3.10, 14.54, -18.62)
CIE-LCHlch(3.10, 23.62, 307.98°)
OKLaboklab(16.04% 0.0423 -0.061)
OKLCHoklch(16.04% 0.074 304.8)
XYZxyz(0.6807, 0.3428, 1.8636)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150226 #132602
analogous
#030226 #150226 #260225
triadic
#150226 #261502 #022615
tetradic
#150226 #260302 #132602 #022526
square
#150226 #260302 #132602 #022526
split-complementary
#150226 #252602 #022603
monochromatic
#10021D #10021D #150226 #350560 #55089A

Accessibility & contrast

On white

19.65
#150226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#150226 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #150226
19.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150226#FFFFFF#000000##FFFFFF
##1502261.0019.651.0719.65
#FFFFFF19.651.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B27
Deuteranopia (green-blind)
#000B25
Tritanopia (blue-blind)
#120913
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #150226;
/* rgb */ color: rgb(21, 2, 38);
/* oklch */ color: oklch(16.0% 0.074 304.8);
Tailwind
colors: {
  custom: {
    50: '#524760',
    500: '#150226',
    950: '#000000',
  },
}
SCSS
$custom: #150226;
$custom-light: #524760;
$custom-dark: #000000;
JSON
{
  "hex": "#150226",
  "rgb": {
    "r": 21,
    "g": 2,
    "b": 38
  },
  "hsl": {
    "h": 271.667,
    "s": 90,
    "l": 7.843
  },
  "oklch": {
    "l": 0.16042,
    "c": 0.07425,
    "h": 304.8
  },
  "luminance": 0.00343
}

Semantic roles & 50–950 ramp

primary
#150226
secondary
#406B18
accent
#FF298E
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#020005
muted
#787779

Preview Lab

Preview with #150226

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

Preview Lab → · Contrast checker → · Palette generator →

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