#2A0936#2A0936

#2A0936 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.3% C 0.087 H 315.4°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#2A0936
RGBrgb(42, 9, 54)
HSLhsl(284, 71%, 12%)
HSVhsv(284, 83%, 21%)
CMYKcmyk(22.2%, 83.3%, 0%, 78.8%)
CIE-LABlab(8.60, 25.18, -21.67)
CIE-LCHlch(8.60, 33.22, 319.29°)
OKLaboklab(22.32% 0.062 -0.061)
OKLCHoklch(22.32% 0.087 315.4)
XYZxyz(1.7183, 0.9540, 3.5829)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0936 #153609
analogous
#140936 #2A0936 #36092C
triadic
#2A0936 #362A09 #09362A
tetradic
#2A0936 #361409 #153609 #092C36
square
#2A0936 #361409 #153609 #092C36
split-complementary
#2A0936 #2C3609 #093614
monochromatic
#14041A #14041A #2A0936 #53126A #7C1A9F

Accessibility & contrast

On white

17.64
#2A0936 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0936
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0936#FFFFFF#000000##FFFFFF
##2A09361.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001737
Deuteranopia (green-blind)
#081A35
Tritanopia (blue-blind)
#29121E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0936;
/* rgb */ color: rgb(42, 9, 54);
/* oklch */ color: oklch(22.3% 0.087 315.4);
Tailwind
colors: {
  custom: {
    50: '#664c6d',
    500: '#2a0936',
    950: '#000000',
  },
}
SCSS
$custom: #2a0936;
$custom-light: #664c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0936",
  "rgb": {
    "r": 42,
    "g": 9,
    "b": 54
  },
  "hsl": {
    "h": 284,
    "s": 71.429,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22319,
    "c": 0.08696,
    "h": 315.4
  },
  "luminance": 0.00954
}

Semantic roles & 50–950 ramp

primary
#2A0936
secondary
#3B7427
accent
#EE3A6A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0936

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

Preview Lab → · Contrast checker → · Palette generator →

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