#2A0837#2A0837

#2A0837 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.3% C 0.090 H 314.8°. Best body text is #FFFFFF at 17.67:1 contrast (WCAG AA passes).

Color values

HEX#2A0837
RGBrgb(42, 8, 55)
HSLhsl(283, 75%, 12%)
HSVhsv(283, 85%, 22%)
CMYKcmyk(23.6%, 85.5%, 0%, 78.4%)
CIE-LABlab(8.50, 25.96, -22.57)
CIE-LCHlch(8.50, 34.40, 319.00°)
OKLaboklab(22.27% 0.0632 -0.0636)
OKLCHoklch(22.27% 0.09 314.8)
XYZxyz(1.7312, 0.9418, 3.7043)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0837 #153708
analogous
#120837 #2A0837 #37082D
triadic
#2A0837 #372A08 #08372A
tetradic
#2A0837 #371208 #153708 #082D37
square
#2A0837 #371208 #153708 #082D37
split-complementary
#2A0837 #2D3708 #083712
monochromatic
#14041B #14041B #2A0837 #53106C #7C18A2

Accessibility & contrast

On white

17.67
#2A0837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0837
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0837#FFFFFF#000000##FFFFFF
##2A08371.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001738
Deuteranopia (green-blind)
#061936
Tritanopia (blue-blind)
#29121F
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a0837;
/* rgb */ color: rgb(42, 8, 55);
/* oklch */ color: oklch(22.3% 0.090 314.8);
Tailwind
colors: {
  custom: {
    50: '#664b6e',
    500: '#2a0837',
    950: '#000000',
  },
}
SCSS
$custom: #2a0837;
$custom-light: #664b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0837",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 55
  },
  "hsl": {
    "h": 283.404,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.2227,
    "c": 0.08965,
    "h": 314.8
  },
  "luminance": 0.00942
}

Semantic roles & 50–950 ramp

primary
#2A0837
secondary
#3B7625
accent
#F1376A
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0837

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

Preview Lab → · Contrast checker → · Palette generator →

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