#2A0836#2A0836

#2A0836 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.2% C 0.089 H 315.6°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#2A0836
RGBrgb(42, 8, 54)
HSLhsl(284, 74%, 12%)
HSVhsv(284, 85%, 21%)
CMYKcmyk(22.2%, 85.2%, 0%, 78.8%)
CIE-LABlab(8.41, 25.72, -21.97)
CIE-LCHlch(8.41, 33.83, 319.48°)
OKLaboklab(22.19% 0.0633 -0.0619)
OKLCHoklch(22.19% 0.089 315.6)
XYZxyz(1.7074, 0.9323, 3.5793)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0836 #143608
analogous
#130836 #2A0836 #36082B
triadic
#2A0836 #362A08 #08362A
tetradic
#2A0836 #361308 #143608 #082B36
square
#2A0836 #361308 #143608 #082B36
split-complementary
#2A0836 #2B3608 #083613
monochromatic
#15041B #15041B #2A0836 #53106B #7D18A1

Accessibility & contrast

On white

17.70
#2A0836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0836
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0836#FFFFFF#000000##FFFFFF
##2A08361.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001637
Deuteranopia (green-blind)
#071935
Tritanopia (blue-blind)
#29121E
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a0836;
/* rgb */ color: rgb(42, 8, 54);
/* oklch */ color: oklch(22.2% 0.089 315.6);
Tailwind
colors: {
  custom: {
    50: '#664b6d',
    500: '#2a0836',
    950: '#000000',
  },
}
SCSS
$custom: #2a0836;
$custom-light: #664b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0836",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 54
  },
  "hsl": {
    "h": 284.348,
    "s": 74.194,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22185,
    "c": 0.08854,
    "h": 315.6
  },
  "luminance": 0.00932
}

Semantic roles & 50–950 ramp

primary
#2A0836
secondary
#3A7525
accent
#F13767
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0836

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

Preview Lab → · Contrast checker → · Palette generator →

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