#2A052F#2A052F

#2A052F is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.2% C 0.086 H 322.7°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#2A052F
RGBrgb(42, 5, 47)
HSLhsl(293, 81%, 10%)
HSVhsv(293, 89%, 18%)
CMYKcmyk(10.6%, 89.4%, 0%, 81.6%)
CIE-LABlab(7.28, 25.68, -18.64)
CIE-LCHlch(7.28, 31.73, 324.03°)
OKLaboklab(21.19% 0.0686 -0.0522)
OKLCHoklch(21.19% 0.086 322.7)
XYZxyz(1.5222, 0.8061, 2.7642)
Luminance0.0081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A052F #0A2F05
analogous
#15052F #2A052F #2F051F
triadic
#2A052F #2F2A05 #052F2A
tetradic
#2A052F #2F1505 #0A2F05 #051F2F
square
#2A052F #2F1505 #0A2F05 #051F2F
split-complementary
#2A052F #1F2F05 #052F15
monochromatic
#19031C #19031C #2A052F #5B0B66 #8D119E

Accessibility & contrast

On white

18.08
#2A052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A052F
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A052F#FFFFFF#000000##FFFFFF
##2A052F1.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#0B182E
Tritanopia (blue-blind)
#2B0C19
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a052f;
/* rgb */ color: rgb(42, 5, 47);
/* oklch */ color: oklch(21.2% 0.086 322.7);
Tailwind
colors: {
  custom: {
    50: '#664968',
    500: '#2a052f',
    950: '#000000',
  },
}
SCSS
$custom: #2a052f;
$custom-light: #664968;
$custom-dark: #000000;
JSON
{
  "hex": "#2a052f",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 292.857,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.21186,
    "c": 0.08624,
    "h": 322.7
  },
  "luminance": 0.00806
}

Semantic roles & 50–950 ramp

primary
#2A052F
secondary
#29711F
accent
#F73148
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A052F

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

Preview Lab → · Contrast checker → · Palette generator →

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