#2A0526#2A0526

#2A0526 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.5% C 0.077 H 332.7°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#2A0526
RGBrgb(42, 5, 38)
HSLhsl(306, 79%, 9%)
HSVhsv(306, 88%, 16%)
CMYKcmyk(0%, 88.1%, 9.5%, 83.5%)
CIE-LABlab(6.69, 23.55, -12.80)
CIE-LCHlch(6.69, 26.80, 331.48°)
OKLaboklab(20.52% 0.0688 -0.0355)
OKLCHoklch(20.52% 0.077 332.7)
XYZxyz(1.3590, 0.7408, 1.9048)
Luminance0.0074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0526 #052A09
analogous
#1C052A #2A0526 #2A0514
triadic
#2A0526 #262A05 #05262A
tetradic
#2A0526 #2A1C05 #052A09 #05142A
square
#2A0526 #2A1C05 #052A09 #05142A
split-complementary
#2A0526 #142A05 #052A1C
monochromatic
#1B0319 #1B0319 #2A0526 #610C57 #971289

Accessibility & contrast

On white

18.29
#2A0526 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2A0526 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0526
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0526#FFFFFF#000000##FFFFFF
##2A05261.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041127
Deuteranopia (green-blind)
#111725
Tritanopia (blue-blind)
#2C0814
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a0526;
/* rgb */ color: rgb(42, 5, 38);
/* oklch */ color: oklch(20.5% 0.077 332.7);
Tailwind
colors: {
  custom: {
    50: '#654960',
    500: '#2a0526',
    950: '#000000',
  },
}
SCSS
$custom: #2a0526;
$custom-light: #654960;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0526",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 38
  },
  "hsl": {
    "h": 306.486,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.20517,
    "c": 0.07741,
    "h": 332.7
  },
  "luminance": 0.00741
}

Semantic roles & 50–950 ramp

primary
#2A0526
secondary
#1F6C27
accent
#F54833
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#060105
muted
#7A7779

Preview Lab

Preview with #2A0526

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

Preview Lab → · Contrast checker → · Palette generator →

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