#2A0839#2A0839

#2A0839 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.4% C 0.092 H 313.1°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#2A0839
RGBrgb(42, 8, 57)
HSLhsl(282, 75%, 13%)
HSVhsv(282, 86%, 22%)
CMYKcmyk(26.3%, 86%, 0%, 77.6%)
CIE-LABlab(8.67, 26.46, -23.75)
CIE-LCHlch(8.67, 35.56, 318.10°)
OKLaboklab(22.44% 0.0628 -0.0671)
OKLCHoklch(22.44% 0.092 313.1)
XYZxyz(1.7801, 0.9614, 3.9619)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0839 #173908
analogous
#120839 #2A0839 #39082F
triadic
#2A0839 #392A08 #08392A
tetradic
#2A0839 #391208 #173908 #082F39
square
#2A0839 #391208 #173908 #082F39
split-complementary
#2A0839 #2F3908 #083912
monochromatic
#14041B #14041B #2A0839 #52106F #7917A4

Accessibility & contrast

On white

17.61
#2A0839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0839
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0839#FFFFFF#000000##FFFFFF
##2A08391.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173A
Deuteranopia (green-blind)
#041A38
Tritanopia (blue-blind)
#281320
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0839;
/* rgb */ color: rgb(42, 8, 57);
/* oklch */ color: oklch(22.4% 0.092 313.1);
Tailwind
colors: {
  custom: {
    50: '#664b70',
    500: '#2a0839',
    950: '#000000',
  },
}
SCSS
$custom: #2a0839;
$custom-light: #664b70;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0839",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 57
  },
  "hsl": {
    "h": 281.633,
    "s": 75.385,
    "l": 12.745
  },
  "oklch": {
    "l": 0.22443,
    "c": 0.09191,
    "h": 313.1
  },
  "luminance": 0.00961
}

Semantic roles & 50–950 ramp

primary
#2A0839
secondary
#3E7825
accent
#F2366F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0839

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

Preview Lab → · Contrast checker → · Palette generator →

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