#2A052A#2A052A

#2A052A is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.8% C 0.081 H 328.0°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#2A052A
RGBrgb(42, 5, 42)
HSLhsl(300, 79%, 9%)
HSVhsv(300, 88%, 16%)
CMYKcmyk(0%, 88.1%, 0%, 83.5%)
CIE-LABlab(6.94, 24.48, -15.44)
CIE-LCHlch(6.94, 28.94, 327.75°)
OKLaboklab(20.8% 0.0689 -0.043)
OKLCHoklch(20.8% 0.081 328)
XYZxyz(1.4270, 0.7681, 2.2631)
Luminance0.0077 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A052A #052A05
analogous
#18052A #2A052A #2A0518
triadic
#2A052A #2A2A05 #052A2A
tetradic
#2A052A #2A1805 #052A05 #05182A
square
#2A052A #2A1805 #052A05 #05182A
split-complementary
#2A052A #182A05 #052A18
monochromatic
#1B031B #1B031B #2A052A #610C61 #971297

Accessibility & contrast

On white

18.20
#2A052A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A052A
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A052A#FFFFFF#000000##FFFFFF
##2A052A1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01122B
Deuteranopia (green-blind)
#0E1729
Tritanopia (blue-blind)
#2C0A16
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a052a;
/* rgb */ color: rgb(42, 5, 42);
/* oklch */ color: oklch(20.8% 0.081 328.0);
Tailwind
colors: {
  custom: {
    50: '#654963',
    500: '#2a052a',
    950: '#000000',
  },
}
SCSS
$custom: #2a052a;
$custom-light: #654963;
$custom-dark: #000000;
JSON
{
  "hex": "#2a052a",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 42
  },
  "hsl": {
    "h": 300,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.20801,
    "c": 0.08124,
    "h": 328
  },
  "luminance": 0.00768
}

Semantic roles & 50–950 ramp

primary
#2A052A
secondary
#1F6C1F
accent
#F53333
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#060105
muted
#7A7779

Preview Lab

Preview with #2A052A

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

Preview Lab → · Contrast checker → · Palette generator →

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