#2A052C#2A052C

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

Color values

HEX#2A052C
RGBrgb(42, 5, 44)
HSLhsl(297, 80%, 10%)
HSVhsv(297, 89%, 17%)
CMYKcmyk(4.5%, 88.6%, 0%, 82.7%)
CIE-LABlab(7.07, 24.96, -16.74)
CIE-LCHlch(7.07, 30.05, 326.15°)
OKLaboklab(20.95% 0.0689 -0.0467)
OKLCHoklch(20.95% 0.083 325.8)
XYZxyz(1.4637, 0.7827, 2.4564)
Luminance0.0078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A052C #072C05
analogous
#17052C #2A052C #2C051B
triadic
#2A052C #2C2A05 #052C2A
tetradic
#2A052C #2C1705 #072C05 #051B2C
square
#2A052C #2C1705 #072C05 #051B2C
split-complementary
#2A052C #1B2C05 #052C17
monochromatic
#1A031B #1A031B #2A052C #5E0B63 #93119A

Accessibility & contrast

On white

18.16
#2A052C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A052C
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A052C#FFFFFF#000000##FFFFFF
##2A052C1.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132D
Deuteranopia (green-blind)
#0D172B
Tritanopia (blue-blind)
#2B0B17
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a052c;
/* rgb */ color: rgb(42, 5, 44);
/* oklch */ color: oklch(21.0% 0.083 325.8);
Tailwind
colors: {
  custom: {
    50: '#654965',
    500: '#2a052c',
    950: '#000000',
  },
}
SCSS
$custom: #2a052c;
$custom-light: #654965;
$custom-dark: #000000;
JSON
{
  "hex": "#2a052c",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 44
  },
  "hsl": {
    "h": 296.923,
    "s": 79.592,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20952,
    "c": 0.08322,
    "h": 325.8
  },
  "luminance": 0.00783
}

Semantic roles & 50–950 ramp

primary
#2A052C
secondary
#236E1F
accent
#F6323C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060105
muted
#7A777A

Preview Lab

Preview with #2A052C

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

Preview Lab → · Contrast checker → · Palette generator →

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