#2A0336#2A0336

#2A0336 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.5% C 0.097 H 316.7°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#2A0336
RGBrgb(42, 3, 54)
HSLhsl(286, 89%, 11%)
HSVhsv(286, 94%, 21%)
CMYKcmyk(22.2%, 94.4%, 0%, 78.8%)
CIE-LABlab(7.44, 28.51, -23.54)
CIE-LCHlch(7.44, 36.97, 320.45°)
OKLaboklab(21.49% 0.0705 -0.0665)
OKLCHoklch(21.49% 0.097 316.7)
XYZxyz(1.6532, 0.8238, 3.5612)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0336 #0F3603
analogous
#100336 #2A0336 #360328
triadic
#2A0336 #362A03 #03362A
tetradic
#2A0336 #361003 #0F3603 #032836
square
#2A0336 #361003 #0F3603 #032836
split-complementary
#2A0336 #283603 #033610
monochromatic
#17021D #17021D #2A0336 #570670 #8409AA

Accessibility & contrast

On white

18.03
#2A0336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0336
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0336#FFFFFF#000000##FFFFFF
##2A03361.0018.031.1618.03
#FFFFFF18.031.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001437
Deuteranopia (green-blind)
#031735
Tritanopia (blue-blind)
#290E1D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a0336;
/* rgb */ color: rgb(42, 3, 54);
/* oklch */ color: oklch(21.5% 0.097 316.7);
Tailwind
colors: {
  custom: {
    50: '#66486d',
    500: '#2a0336',
    950: '#000000',
  },
}
SCSS
$custom: #2a0336;
$custom-light: #66486d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0336",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 285.882,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.2149,
    "c": 0.09695,
    "h": 316.7
  },
  "luminance": 0.00824
}

Semantic roles & 50–950 ramp

primary
#2A0336
secondary
#32791C
accent
#FF295B
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0336

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

Preview Lab → · Contrast checker → · Palette generator →

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