#2A052E#2A052E

#2A052E is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.1% C 0.085 H 323.7°. Best body text is #FFFFFF at 18.11:1 contrast (WCAG AA passes).

Color values

HEX#2A052E
RGBrgb(42, 5, 46)
HSLhsl(294, 80%, 10%)
HSVhsv(294, 89%, 18%)
CMYKcmyk(8.7%, 89.1%, 0%, 82%)
CIE-LABlab(7.21, 25.44, -18.01)
CIE-LCHlch(7.21, 31.17, 324.70°)
OKLaboklab(21.11% 0.0687 -0.0504)
OKLCHoklch(21.11% 0.085 323.7)
XYZxyz(1.5022, 0.7981, 2.6592)
Luminance0.0080 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A052E #092E05
analogous
#15052E #2A052E #2E051E
triadic
#2A052E #2E2A05 #052E2A
tetradic
#2A052E #2E1505 #092E05 #051E2E
square
#2A052E #2E1505 #092E05 #051E2E
split-complementary
#2A052E #1E2E05 #052E15
monochromatic
#19031C #19031C #2A052E #5C0B65 #8F119C

Accessibility & contrast

On white

18.11
#2A052E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A052E
18.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A052E#FFFFFF#000000##FFFFFF
##2A052E1.0018.111.1618.11
#FFFFFF18.111.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#0C172D
Tritanopia (blue-blind)
#2B0C19
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a052e;
/* rgb */ color: rgb(42, 5, 46);
/* oklch */ color: oklch(21.1% 0.085 323.7);
Tailwind
colors: {
  custom: {
    50: '#654967',
    500: '#2a052e',
    950: '#000000',
  },
}
SCSS
$custom: #2a052e;
$custom-light: #654967;
$custom-dark: #000000;
JSON
{
  "hex": "#2a052e",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 46
  },
  "hsl": {
    "h": 294.146,
    "s": 80.392,
    "l": 10
  },
  "oklch": {
    "l": 0.21107,
    "c": 0.08523,
    "h": 323.7
  },
  "luminance": 0.00798
}

Semantic roles & 50–950 ramp

primary
#2A052E
secondary
#27701F
accent
#F73144
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A052E

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

Preview Lab → · Contrast checker → · Palette generator →

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