#2A0334#2A0334

#2A0334 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.3% C 0.095 H 318.4°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#2A0334
RGBrgb(42, 3, 52)
HSLhsl(288, 89%, 11%)
HSVhsv(288, 94%, 20%)
CMYKcmyk(19.2%, 94.2%, 0%, 79.6%)
CIE-LABlab(7.28, 28.01, -22.35)
CIE-LCHlch(7.28, 35.83, 321.42°)
OKLaboklab(21.31% 0.071 -0.063)
OKLCHoklch(21.31% 0.095 318.4)
XYZxyz(1.6072, 0.8054, 3.3189)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0334 #0D3403
analogous
#110334 #2A0334 #340325
triadic
#2A0334 #342A03 #03342A
tetradic
#2A0334 #341103 #0D3403 #032534
square
#2A0334 #341103 #0D3403 #032534
split-complementary
#2A0334 #253403 #033411
monochromatic
#17021D #17021D #2A0334 #59066E #870AA8

Accessibility & contrast

On white

18.09
#2A0334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0334
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0334#FFFFFF#000000##FFFFFF
##2A03341.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001435
Deuteranopia (green-blind)
#051733
Tritanopia (blue-blind)
#2A0D1B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a0334;
/* rgb */ color: rgb(42, 3, 52);
/* oklch */ color: oklch(21.3% 0.095 318.4);
Tailwind
colors: {
  custom: {
    50: '#66486c',
    500: '#2a0334',
    950: '#000000',
  },
}
SCSS
$custom: #2a0334;
$custom-light: #66486c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0334",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 287.755,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.21312,
    "c": 0.09497,
    "h": 318.4
  },
  "luminance": 0.00805
}

Semantic roles & 50–950 ramp

primary
#2A0334
secondary
#2E771C
accent
#FF2955
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0334

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

Preview Lab → · Contrast checker → · Palette generator →

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