#2A0C32#2A0C32

#2A0C32 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.4% C 0.077 H 318.6°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#2A0C32
RGBrgb(42, 12, 50)
HSLhsl(287, 61%, 12%)
HSVhsv(287, 76%, 20%)
CMYKcmyk(16%, 76%, 0%, 80.4%)
CIE-LABlab(8.87, 22.58, -18.32)
CIE-LCHlch(8.87, 29.08, 320.95°)
OKLaboklab(22.41% 0.058 -0.0512)
OKLCHoklch(22.41% 0.077 318.6)
XYZxyz(1.6620, 0.9855, 3.1197)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C32 #14320C
analogous
#170C32 #2A0C32 #320C27
triadic
#2A0C32 #322A0C #0C322A
tetradic
#2A0C32 #32170C #14320C #0C2732
square
#2A0C32 #32170C #14320C #0C2732
split-complementary
#2A0C32 #27320C #0C3217
monochromatic
#150619 #150619 #2A0C32 #531863 #7D2495

Accessibility & contrast

On white

17.54
#2A0C32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2A0C32 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0C32
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C32#FFFFFF#000000##FFFFFF
##2A0C321.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031733
Deuteranopia (green-blind)
#0E1A31
Tritanopia (blue-blind)
#2A131D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0c32;
/* rgb */ color: rgb(42, 12, 50);
/* oklch */ color: oklch(22.4% 0.077 318.6);
Tailwind
colors: {
  custom: {
    50: '#654d6a',
    500: '#2a0c32',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c32;
$custom-light: #654d6a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c32",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 50
  },
  "hsl": {
    "h": 287.368,
    "s": 61.29,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22413,
    "c": 0.07741,
    "h": 318.6
  },
  "luminance": 0.00985
}

Semantic roles & 50–950 ramp

primary
#2A0C32
secondary
#3A6E2C
accent
#E44365
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0C32

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

Preview Lab → · Contrast checker → · Palette generator →

#2A0C32 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva