#2A052D#2A052D

#2A052D is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.0% C 0.084 H 324.8°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#2A052D
RGBrgb(42, 5, 45)
HSLhsl(296, 80%, 10%)
HSVhsv(296, 89%, 18%)
CMYKcmyk(6.7%, 88.9%, 0%, 82.4%)
CIE-LABlab(7.14, 25.20, -17.38)
CIE-LCHlch(7.14, 30.61, 325.41°)
OKLaboklab(21.03% 0.0688 -0.0486)
OKLCHoklch(21.03% 0.084 324.8)
XYZxyz(1.4827, 0.7903, 2.5566)
Luminance0.0079 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A052D #082D05
analogous
#16052D #2A052D #2D051C
triadic
#2A052D #2D2A05 #052D2A
tetradic
#2A052D #2D1605 #082D05 #051C2D
square
#2A052D #2D1605 #082D05 #051C2D
split-complementary
#2A052D #1C2D05 #052D16
monochromatic
#1A031C #1A031C #2A052D #5D0B64 #91119B

Accessibility & contrast

On white

18.13
#2A052D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2A052D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A052D
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A052D#FFFFFF#000000##FFFFFF
##2A052D1.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132E
Deuteranopia (green-blind)
#0C172C
Tritanopia (blue-blind)
#2B0B18
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a052d;
/* rgb */ color: rgb(42, 5, 45);
/* oklch */ color: oklch(21.0% 0.084 324.8);
Tailwind
colors: {
  custom: {
    50: '#654966',
    500: '#2a052d',
    950: '#000000',
  },
}
SCSS
$custom: #2a052d;
$custom-light: #654966;
$custom-dark: #000000;
JSON
{
  "hex": "#2a052d",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 45
  },
  "hsl": {
    "h": 295.5,
    "s": 80,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21029,
    "c": 0.08422,
    "h": 324.8
  },
  "luminance": 0.0079
}

Semantic roles & 50–950 ramp

primary
#2A052D
secondary
#256F1F
accent
#F63140
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A052D

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

Preview Lab → · Contrast checker → · Palette generator →

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