#2A0534#2A0534

#2A0534 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.6% C 0.091 H 318.0°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#2A0534
RGBrgb(42, 5, 52)
HSLhsl(287, 82%, 11%)
HSVhsv(287, 90%, 20%)
CMYKcmyk(19.2%, 90.4%, 0%, 79.6%)
CIE-LABlab(7.67, 26.90, -21.72)
CIE-LCHlch(7.67, 34.57, 321.08°)
OKLaboklab(21.6% 0.0679 -0.0611)
OKLCHoklch(21.6% 0.091 318)
XYZxyz(1.6289, 0.8488, 3.3262)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0534 #0F3405
analogous
#120534 #2A0534 #340526
triadic
#2A0534 #342A05 #05342A
tetradic
#2A0534 #341205 #0F3405 #052634
square
#2A0534 #341205 #0F3405 #052634
split-complementary
#2A0534 #263405 #053412
monochromatic
#17031C #17031C #2A0534 #570A6C #8410A4

Accessibility & contrast

On white

17.95
#2A0534 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0534
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0534#FFFFFF#000000##FFFFFF
##2A05341.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001535
Deuteranopia (green-blind)
#071833
Tritanopia (blue-blind)
#2A0F1C
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2a0534;
/* rgb */ color: rgb(42, 5, 52);
/* oklch */ color: oklch(21.6% 0.091 318.0);
Tailwind
colors: {
  custom: {
    50: '#66496c',
    500: '#2a0534',
    950: '#000000',
  },
}
SCSS
$custom: #2a0534;
$custom-light: #66496c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0534",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 52
  },
  "hsl": {
    "h": 287.234,
    "s": 82.456,
    "l": 11.176
  },
  "oklch": {
    "l": 0.216,
    "c": 0.09139,
    "h": 318
  },
  "luminance": 0.00849
}

Semantic roles & 50–950 ramp

primary
#2A0534
secondary
#32751F
accent
#F92F5A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0534

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

Preview Lab → · Contrast checker → · Palette generator →

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