#2A0731#2A0731

#2A0731 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.6% C 0.085 H 320.5°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#2A0731
RGBrgb(42, 7, 49)
HSLhsl(290, 75%, 11%)
HSVhsv(290, 86%, 19%)
CMYKcmyk(14.3%, 85.7%, 0%, 80.8%)
CIE-LABlab(7.82, 25.06, -19.26)
CIE-LCHlch(7.82, 31.61, 322.46°)
OKLaboklab(21.64% 0.0653 -0.0539)
OKLCHoklch(21.64% 0.085 320.5)
XYZxyz(1.5851, 0.8660, 2.9888)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0731 #0E3107
analogous
#150731 #2A0731 #310723
triadic
#2A0731 #312A07 #07312A
tetradic
#2A0731 #311507 #0E3107 #072331
square
#2A0731 #311507 #0E3107 #072331
split-complementary
#2A0731 #233107 #073115
monochromatic
#17041B #17041B #2A0731 #580F67 #86169C

Accessibility & contrast

On white

17.90
#2A0731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0731
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0731#FFFFFF#000000##FFFFFF
##2A07311.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0731;
/* rgb */ color: rgb(42, 7, 49);
/* oklch */ color: oklch(21.6% 0.085 320.5);
Tailwind
colors: {
  custom: {
    50: '#654a69',
    500: '#2a0731',
    950: '#000000',
  },
}
SCSS
$custom: #2a0731;
$custom-light: #654a69;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0731",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 49
  },
  "hsl": {
    "h": 290,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21636,
    "c": 0.08471,
    "h": 320.5
  },
  "luminance": 0.00866
}

Semantic roles & 50–950 ramp

primary
#2A0731
secondary
#307123
accent
#F23655
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0731

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

Preview Lab → · Contrast checker → · Palette generator →

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