#2A0333#2A0333

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

Color values

HEX#2A0333
RGBrgb(42, 3, 51)
HSLhsl(289, 89%, 11%)
HSVhsv(289, 94%, 20%)
CMYKcmyk(17.6%, 94.1%, 0%, 80%)
CIE-LABlab(7.19, 27.76, -21.74)
CIE-LCHlch(7.19, 35.26, 321.94°)
OKLaboklab(21.22% 0.0712 -0.0613)
OKLCHoklch(21.22% 0.094 319.3)
XYZxyz(1.5849, 0.7965, 3.2016)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0333 #0C3303
analogous
#120333 #2A0333 #330324
triadic
#2A0333 #332A03 #03332A
tetradic
#2A0333 #331203 #0C3303 #032433
square
#2A0333 #331203 #0C3303 #032433
split-complementary
#2A0333 #243303 #033312
monochromatic
#18021D #18021D #2A0333 #5A066D #890AA7

Accessibility & contrast

On white

18.12
#2A0333 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0333
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0333#FFFFFF#000000##FFFFFF
##2A03331.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0333;
/* rgb */ color: rgb(42, 3, 51);
/* oklch */ color: oklch(21.2% 0.094 319.3);
Tailwind
colors: {
  custom: {
    50: '#66486b',
    500: '#2a0333',
    950: '#000000',
  },
}
SCSS
$custom: #2a0333;
$custom-light: #66486b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0333",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 51
  },
  "hsl": {
    "h": 288.75,
    "s": 88.889,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21224,
    "c": 0.09399,
    "h": 319.3
  },
  "luminance": 0.00796
}

Semantic roles & 50–950 ramp

primary
#2A0333
secondary
#2D761C
accent
#FF2951
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0333

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

Preview Lab → · Contrast checker → · Palette generator →

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