#2A0831#2A0831

#2A0831 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.8% C 0.083 H 320.3°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#2A0831
RGBrgb(42, 8, 49)
HSLhsl(290, 72%, 11%)
HSVhsv(290, 84%, 19%)
CMYKcmyk(14.3%, 83.7%, 0%, 80.8%)
CIE-LABlab(8.02, 24.51, -18.94)
CIE-LCHlch(8.02, 30.98, 322.30°)
OKLaboklab(21.78% 0.0638 -0.053)
OKLCHoklch(21.78% 0.083 320.3)
XYZxyz(1.5960, 0.8877, 2.9924)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0831 #0F3108
analogous
#150831 #2A0831 #310823
triadic
#2A0831 #312A08 #08312A
tetradic
#2A0831 #311508 #0F3108 #082331
square
#2A0831 #311508 #0F3108 #082331
split-complementary
#2A0831 #233108 #083115
monochromatic
#17041A #17041A #2A0831 #571166 #84199A

Accessibility & contrast

On white

17.83
#2A0831 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2A0831 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0831
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0831#FFFFFF#000000##FFFFFF
##2A08311.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#0C1930
Tritanopia (blue-blind)
#2A101B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a0831;
/* rgb */ color: rgb(42, 8, 49);
/* oklch */ color: oklch(21.8% 0.083 320.3);
Tailwind
colors: {
  custom: {
    50: '#654b69',
    500: '#2a0831',
    950: '#000000',
  },
}
SCSS
$custom: #2a0831;
$custom-light: #654b69;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0831",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 49
  },
  "hsl": {
    "h": 289.756,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.21777,
    "c": 0.08298,
    "h": 320.3
  },
  "luminance": 0.00888
}

Semantic roles & 50–950 ramp

primary
#2A0831
secondary
#327025
accent
#EF3958
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0831

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

Preview Lab → · Contrast checker → · Palette generator →

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