#2A0835#2A0835

#2A0835 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.1% C 0.087 H 316.5°. Best body text is #FFFFFF at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#2A0835
RGBrgb(42, 8, 53)
HSLhsl(285, 74%, 12%)
HSVhsv(285, 85%, 21%)
CMYKcmyk(20.8%, 84.9%, 0%, 79.2%)
CIE-LABlab(8.33, 25.47, -21.38)
CIE-LCHlch(8.33, 33.25, 319.99°)
OKLaboklab(22.1% 0.0634 -0.0601)
OKLCHoklch(22.1% 0.087 316.5)
XYZxyz(1.6842, 0.9230, 3.4569)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0835 #133508
analogous
#140835 #2A0835 #35082A
triadic
#2A0835 #352A08 #08352A
tetradic
#2A0835 #351408 #133508 #082A35
square
#2A0835 #351408 #133508 #082A35
split-complementary
#2A0835 #2A3508 #083514
monochromatic
#15041B #15041B #2A0835 #54106A #7E189F

Accessibility & contrast

On white

17.73
#2A0835 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0835
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0835#FFFFFF#000000##FFFFFF
##2A08351.0017.731.1817.73
#FFFFFF17.731.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001636
Deuteranopia (green-blind)
#081934
Tritanopia (blue-blind)
#29111D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a0835;
/* rgb */ color: rgb(42, 8, 53);
/* oklch */ color: oklch(22.1% 0.087 316.5);
Tailwind
colors: {
  custom: {
    50: '#664b6c',
    500: '#2a0835',
    950: '#000000',
  },
}
SCSS
$custom: #2a0835;
$custom-light: #664b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0835",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 53
  },
  "hsl": {
    "h": 285.333,
    "s": 73.77,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22101,
    "c": 0.08742,
    "h": 316.5
  },
  "luminance": 0.00923
}

Semantic roles & 50–950 ramp

primary
#2A0835
secondary
#387425
accent
#F03765
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0835

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

Preview Lab → · Contrast checker → · Palette generator →

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