#2A0537#2A0537

#2A0537 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.9% C 0.095 H 315.4°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#2A0537
RGBrgb(42, 5, 55)
HSLhsl(284, 83%, 12%)
HSVhsv(284, 91%, 22%)
CMYKcmyk(23.6%, 90.9%, 0%, 78.4%)
CIE-LABlab(7.92, 27.62, -23.50)
CIE-LCHlch(7.92, 36.27, 319.61°)
OKLaboklab(21.86% 0.0673 -0.0664)
OKLCHoklch(21.86% 0.095 315.4)
XYZxyz(1.6986, 0.8767, 3.6934)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0537 #123705
analogous
#110537 #2A0537 #37052B
triadic
#2A0537 #372A05 #05372A
tetradic
#2A0537 #371105 #123705 #052B37
square
#2A0537 #371105 #123705 #052B37
split-complementary
#2A0537 #2B3705 #053711
monochromatic
#15031C #15031C #2A0537 #550A6F #800FA7

Accessibility & contrast

On white

17.87
#2A0537 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0537
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0537#FFFFFF#000000##FFFFFF
##2A05371.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001538
Deuteranopia (green-blind)
#041836
Tritanopia (blue-blind)
#29101E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2a0537;
/* rgb */ color: rgb(42, 5, 55);
/* oklch */ color: oklch(21.9% 0.095 315.4);
Tailwind
colors: {
  custom: {
    50: '#66496e',
    500: '#2a0537',
    950: '#000000',
  },
}
SCSS
$custom: #2a0537;
$custom-light: #66496e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0537",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 55
  },
  "hsl": {
    "h": 284.4,
    "s": 83.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21862,
    "c": 0.09453,
    "h": 315.4
  },
  "luminance": 0.00877
}

Semantic roles & 50–950 ramp

primary
#2A0537
secondary
#377820
accent
#FA2E63
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0537

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

Preview Lab → · Contrast checker → · Palette generator →

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