#2A0538#2A0538

#2A0538 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.0% C 0.096 H 314.6°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#2A0538
RGBrgb(42, 5, 56)
HSLhsl(284, 84%, 12%)
HSVhsv(284, 91%, 22%)
CMYKcmyk(25%, 91.1%, 0%, 78%)
CIE-LABlab(8.01, 27.86, -24.09)
CIE-LCHlch(8.01, 36.83, 319.16°)
OKLaboklab(21.95% 0.0671 -0.0681)
OKLCHoklch(21.95% 0.096 314.6)
XYZxyz(1.7228, 0.8864, 3.8209)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0538 #133805
analogous
#100538 #2A0538 #38052D
triadic
#2A0538 #382A05 #05382A
tetradic
#2A0538 #381005 #133805 #052D38
square
#2A0538 #381005 #133805 #052D38
split-complementary
#2A0538 #2D3805 #053810
monochromatic
#15031C #15031C #2A0538 #540A70 #7E0FA8

Accessibility & contrast

On white

17.84
#2A0538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2A0538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0538
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0538#FFFFFF#000000##FFFFFF
##2A05381.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#031837
Tritanopia (blue-blind)
#29111E
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a0538;
/* rgb */ color: rgb(42, 5, 56);
/* oklch */ color: oklch(22.0% 0.096 314.6);
Tailwind
colors: {
  custom: {
    50: '#66496f',
    500: '#2a0538',
    950: '#000000',
  },
}
SCSS
$custom: #2a0538;
$custom-light: #66496f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0538",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 283.529,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21951,
    "c": 0.09558,
    "h": 314.6
  },
  "luminance": 0.00886
}

Semantic roles & 50–950 ramp

primary
#2A0538
secondary
#387920
accent
#FA2E66
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0538

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

Preview Lab → · Contrast checker → · Palette generator →

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