#2A0939#2A0939

#2A0939 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.6% C 0.090 H 312.9°. Best body text is #FFFFFF at 17.55:1 contrast (WCAG AA passes).

Color values

HEX#2A0939
RGBrgb(42, 9, 57)
HSLhsl(281, 73%, 13%)
HSVhsv(281, 84%, 22%)
CMYKcmyk(26.3%, 84.2%, 0%, 77.6%)
CIE-LABlab(8.85, 25.94, -23.45)
CIE-LCHlch(8.85, 34.97, 317.88°)
OKLaboklab(22.57% 0.0615 -0.0662)
OKLCHoklch(22.57% 0.09 312.9)
XYZxyz(1.7909, 0.9831, 3.9655)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0939 #183909
analogous
#120939 #2A0939 #390930
triadic
#2A0939 #392A09 #09392A
tetradic
#2A0939 #391209 #183909 #093039
square
#2A0939 #391209 #183909 #093039
split-complementary
#2A0939 #303909 #093912
monochromatic
#13041A #13041A #2A0939 #51116E #781AA3

Accessibility & contrast

On white

17.55
#2A0939 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2A0939 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0939
17.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0939#FFFFFF#000000##FFFFFF
##2A09391.0017.551.2017.55
#FFFFFF17.551.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#051A38
Tritanopia (blue-blind)
#281420
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0939;
/* rgb */ color: rgb(42, 9, 57);
/* oklch */ color: oklch(22.6% 0.090 312.9);
Tailwind
colors: {
  custom: {
    50: '#664c70',
    500: '#2a0939',
    950: '#000000',
  },
}
SCSS
$custom: #2a0939;
$custom-light: #664c70;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0939",
  "rgb": {
    "r": 42,
    "g": 9,
    "b": 57
  },
  "hsl": {
    "h": 281.25,
    "s": 72.727,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22573,
    "c": 0.09039,
    "h": 312.9
  },
  "luminance": 0.00983
}

Semantic roles & 50–950 ramp

primary
#2A0939
secondary
#407727
accent
#EF3872
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0939

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

Preview Lab → · Contrast checker → · Palette generator →

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