#2A0834#2A0834

#2A0834 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.0% C 0.086 H 317.4°. Best body text is #FFFFFF at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#2A0834
RGBrgb(42, 8, 52)
HSLhsl(286, 73%, 12%)
HSVhsv(286, 85%, 20%)
CMYKcmyk(19.2%, 84.6%, 0%, 79.6%)
CIE-LABlab(8.25, 25.23, -20.77)
CIE-LCHlch(8.25, 32.68, 320.53°)
OKLaboklab(22.02% 0.0636 -0.0584)
OKLCHoklch(22.02% 0.086 317.4)
XYZxyz(1.6614, 0.9139, 3.3370)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0834 #123408
analogous
#140834 #2A0834 #340828
triadic
#2A0834 #342A08 #08342A
tetradic
#2A0834 #341408 #123408 #082834
square
#2A0834 #341408 #123408 #082834
split-complementary
#2A0834 #283408 #083414
monochromatic
#15041B #15041B #2A0834 #551069 #80189E

Accessibility & contrast

On white

17.75
#2A0834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0834
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0834#FFFFFF#000000##FFFFFF
##2A08341.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001635
Deuteranopia (green-blind)
#091933
Tritanopia (blue-blind)
#2A111D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a0834;
/* rgb */ color: rgb(42, 8, 52);
/* oklch */ color: oklch(22.0% 0.086 317.4);
Tailwind
colors: {
  custom: {
    50: '#664b6c',
    500: '#2a0834',
    950: '#000000',
  },
}
SCSS
$custom: #2a0834;
$custom-light: #664b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0834",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 52
  },
  "hsl": {
    "h": 286.364,
    "s": 73.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22019,
    "c": 0.0863,
    "h": 317.4
  },
  "luminance": 0.00914
}

Semantic roles & 50–950 ramp

primary
#2A0834
secondary
#377325
accent
#F03862
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0834

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

Preview Lab → · Contrast checker → · Palette generator →

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