#2A0531#2A0531

#2A0531 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.3% C 0.088 H 320.8°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#2A0531
RGBrgb(42, 5, 49)
HSLhsl(290, 81%, 11%)
HSVhsv(290, 90%, 19%)
CMYKcmyk(14.3%, 89.8%, 0%, 80.8%)
CIE-LABlab(7.43, 26.17, -19.89)
CIE-LCHlch(7.43, 32.86, 322.77°)
OKLaboklab(21.35% 0.0684 -0.0558)
OKLCHoklch(21.35% 0.088 320.8)
XYZxyz(1.5634, 0.8226, 2.9816)
Luminance0.0082 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0531 #0C3105
analogous
#140531 #2A0531 #310522
triadic
#2A0531 #312A05 #05312A
tetradic
#2A0531 #311405 #0C3105 #052231
square
#2A0531 #311405 #0C3105 #052231
split-complementary
#2A0531 #223105 #053114
monochromatic
#18031C #18031C #2A0531 #5A0B69 #8910A0

Accessibility & contrast

On white

18.03
#2A0531 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2A0531 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0531
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0531#FFFFFF#000000##FFFFFF
##2A05311.0018.031.1618.03
#FFFFFF18.031.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001432
Deuteranopia (green-blind)
#091830
Tritanopia (blue-blind)
#2A0D1A
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a0531;
/* rgb */ color: rgb(42, 5, 49);
/* oklch */ color: oklch(21.3% 0.088 320.8);
Tailwind
colors: {
  custom: {
    50: '#664969',
    500: '#2a0531',
    950: '#000000',
  },
}
SCSS
$custom: #2a0531;
$custom-light: #664969;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0531",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 49
  },
  "hsl": {
    "h": 290.455,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21348,
    "c": 0.08829,
    "h": 320.8
  },
  "luminance": 0.00823
}

Semantic roles & 50–950 ramp

primary
#2A0531
secondary
#2D721F
accent
#F83050
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0531

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

Preview Lab → · Contrast checker → · Palette generator →

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