#2A0A34#2A0A34

#2A0A34 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.3% C 0.083 H 317.0°. Best body text is #FFFFFF at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#2A0A34
RGBrgb(42, 10, 52)
HSLhsl(286, 68%, 12%)
HSVhsv(286, 81%, 20%)
CMYKcmyk(19.2%, 80.8%, 0%, 79.6%)
CIE-LABlab(8.63, 24.16, -20.17)
CIE-LCHlch(8.63, 31.47, 320.14°)
OKLaboklab(22.29% 0.0608 -0.0566)
OKLCHoklch(22.29% 0.083 317)
XYZxyz(1.6831, 0.9573, 3.3443)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0A34 #14340A
analogous
#150A34 #2A0A34 #340A29
triadic
#2A0A34 #342A0A #0A342A
tetradic
#2A0A34 #34150A #14340A #0A2934
square
#2A0A34 #34150A #14340A #0A2934
split-complementary
#2A0A34 #29340A #0A3415
monochromatic
#15051A #15051A #2A0A34 #531467 #7D1E9B

Accessibility & contrast

On white

17.63
#2A0A34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2A0A34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0A34
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0A34#FFFFFF#000000##FFFFFF
##2A0A341.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001735
Deuteranopia (green-blind)
#0B1A33
Tritanopia (blue-blind)
#2A121E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0a34;
/* rgb */ color: rgb(42, 10, 52);
/* oklch */ color: oklch(22.3% 0.083 317.0);
Tailwind
colors: {
  custom: {
    50: '#654c6c',
    500: '#2a0a34',
    950: '#000000',
  },
}
SCSS
$custom: #2a0a34;
$custom-light: #654c6c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0a34",
  "rgb": {
    "r": 42,
    "g": 10,
    "b": 52
  },
  "hsl": {
    "h": 285.714,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22289,
    "c": 0.08308,
    "h": 317
  },
  "luminance": 0.00957
}

Semantic roles & 50–950 ramp

primary
#2A0A34
secondary
#3A7128
accent
#EB3D66
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0A34

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

Preview Lab → · Contrast checker → · Palette generator →

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