#2A0231#2A0231

#2A0231 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.9% C 0.094 H 321.3°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#2A0231
RGBrgb(42, 2, 49)
HSLhsl(291, 92%, 10%)
HSVhsv(291, 96%, 19%)
CMYKcmyk(14.3%, 95.9%, 0%, 80.8%)
CIE-LABlab(6.84, 27.81, -20.83)
CIE-LCHlch(6.84, 34.75, 323.18°)
OKLaboklab(20.9% 0.0733 -0.0588)
OKLCHoklch(20.9% 0.094 321.3)
XYZxyz(1.5309, 0.7575, 2.9707)
Luminance0.0076 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0231 #093102
analogous
#130231 #2A0231 #310220
triadic
#2A0231 #312A02 #02312A
tetradic
#2A0231 #311302 #093102 #022031
square
#2A0231 #311302 #093102 #022031
split-complementary
#2A0231 #203102 #023113
monochromatic
#19011D #19011D #2A0231 #5C046C #8F07A7

Accessibility & contrast

On white

18.24
#2A0231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2A0231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0231
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0231#FFFFFF#000000##FFFFFF
##2A02311.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001232
Deuteranopia (green-blind)
#071730
Tritanopia (blue-blind)
#2A0B19
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a0231;
/* rgb */ color: rgb(42, 2, 49);
/* oklch */ color: oklch(20.9% 0.094 321.3);
Tailwind
colors: {
  custom: {
    50: '#664769',
    500: '#2a0231',
    950: '#000000',
  },
}
SCSS
$custom: #2a0231;
$custom-light: #664769;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0231",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 291.064,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20901,
    "c": 0.09396,
    "h": 321.3
  },
  "luminance": 0.00757
}

Semantic roles & 50–950 ramp

primary
#2A0231
secondary
#277519
accent
#FF2949
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #2A0231

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

Preview Lab → · Contrast checker → · Palette generator →

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