#2A0732#2A0732

#2A0732 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.7% C 0.086 H 319.5°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#2A0732
RGBrgb(42, 7, 50)
HSLhsl(289, 75%, 11%)
HSVhsv(289, 86%, 20%)
CMYKcmyk(16%, 86%, 0%, 80.4%)
CIE-LABlab(7.90, 25.30, -19.87)
CIE-LCHlch(7.90, 32.17, 321.85°)
OKLaboklab(21.72% 0.0652 -0.0557)
OKLCHoklch(21.72% 0.086 319.5)
XYZxyz(1.6065, 0.8746, 3.1012)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0732 #0F3207
analogous
#140732 #2A0732 #320724
triadic
#2A0732 #322A07 #07322A
tetradic
#2A0732 #321407 #0F3207 #072432
square
#2A0732 #321407 #0F3207 #072432
split-complementary
#2A0732 #243207 #073214
monochromatic
#17041B #17041B #2A0732 #570F68 #84169D

Accessibility & contrast

On white

17.88
#2A0732 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2A0732 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0732
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0732#FFFFFF#000000##FFFFFF
##2A07321.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001533
Deuteranopia (green-blind)
#0A1931
Tritanopia (blue-blind)
#2A0F1B
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2a0732;
/* rgb */ color: rgb(42, 7, 50);
/* oklch */ color: oklch(21.7% 0.086 319.5);
Tailwind
colors: {
  custom: {
    50: '#664a6a',
    500: '#2a0732',
    950: '#000000',
  },
}
SCSS
$custom: #2a0732;
$custom-light: #664a6a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0732",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 50
  },
  "hsl": {
    "h": 288.837,
    "s": 75.439,
    "l": 11.176
  },
  "oklch": {
    "l": 0.21716,
    "c": 0.08579,
    "h": 319.5
  },
  "luminance": 0.00874
}

Semantic roles & 50–950 ramp

primary
#2A0732
secondary
#327223
accent
#F23659
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0732

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

Preview Lab → · Contrast checker → · Palette generator →

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