#2A0833#2A0833

#2A0833 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.9% C 0.085 H 318.4°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#2A0833
RGBrgb(42, 8, 51)
HSLhsl(287, 73%, 12%)
HSVhsv(287, 84%, 20%)
CMYKcmyk(17.6%, 84.3%, 0%, 80%)
CIE-LABlab(8.17, 24.98, -20.17)
CIE-LCHlch(8.17, 32.11, 321.09°)
OKLaboklab(21.94% 0.0637 -0.0566)
OKLCHoklch(21.94% 0.085 318.4)
XYZxyz(1.6391, 0.9050, 3.2197)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0833 #113308
analogous
#150833 #2A0833 #330827
triadic
#2A0833 #332A08 #08332A
tetradic
#2A0833 #331508 #113308 #082733
square
#2A0833 #331508 #113308 #082733
split-complementary
#2A0833 #273308 #083315
monochromatic
#16041A #16041A #2A0833 #561068 #81199D

Accessibility & contrast

On white

17.78
#2A0833 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2A0833 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0833
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0833#FFFFFF#000000##FFFFFF
##2A08331.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001634
Deuteranopia (green-blind)
#0A1932
Tritanopia (blue-blind)
#2A101C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a0833;
/* rgb */ color: rgb(42, 8, 51);
/* oklch */ color: oklch(21.9% 0.085 318.4);
Tailwind
colors: {
  custom: {
    50: '#654b6b',
    500: '#2a0833',
    950: '#000000',
  },
}
SCSS
$custom: #2a0833;
$custom-light: #654b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0833",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 51
  },
  "hsl": {
    "h": 287.442,
    "s": 72.881,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21937,
    "c": 0.08519,
    "h": 318.4
  },
  "luminance": 0.00905
}

Semantic roles & 50–950 ramp

primary
#2A0833
secondary
#357225
accent
#F0385F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0833

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

Preview Lab → · Contrast checker → · Palette generator →

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