#2A0331#2A0331

#2A0331 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.1% C 0.092 H 321.1°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#2A0331
RGBrgb(42, 3, 49)
HSLhsl(291, 88%, 10%)
HSVhsv(291, 94%, 19%)
CMYKcmyk(14.3%, 93.9%, 0%, 80.8%)
CIE-LABlab(7.04, 27.26, -20.51)
CIE-LCHlch(7.04, 34.12, 323.04°)
OKLaboklab(21.05% 0.0716 -0.0578)
OKLCHoklch(21.05% 0.092 321.1)
XYZxyz(1.5417, 0.7792, 2.9743)
Luminance0.0078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0331 #0A3103
analogous
#130331 #2A0331 #310321
triadic
#2A0331 #312A03 #03312A
tetradic
#2A0331 #311303 #0A3103 #032131
square
#2A0331 #311303 #0A3103 #032131
split-complementary
#2A0331 #213103 #033113
monochromatic
#19021D #19021D #2A0331 #5B076B #8D0AA4

Accessibility & contrast

On white

18.17
#2A0331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2A0331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0331
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0331#FFFFFF#000000##FFFFFF
##2A03311.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001332
Deuteranopia (green-blind)
#081730
Tritanopia (blue-blind)
#2A0C1A
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a0331;
/* rgb */ color: rgb(42, 3, 49);
/* oklch */ color: oklch(21.1% 0.092 321.1);
Tailwind
colors: {
  custom: {
    50: '#664869',
    500: '#2a0331',
    950: '#000000',
  },
}
SCSS
$custom: #2a0331;
$custom-light: #664869;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0331",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 290.87,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.21052,
    "c": 0.09202,
    "h": 321.1
  },
  "luminance": 0.00779
}

Semantic roles & 50–950 ramp

primary
#2A0331
secondary
#29741B
accent
#FF294A
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0331

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

Preview Lab → · Contrast checker → · Palette generator →

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