#2A0136#2A0136

#2A0136 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.2% C 0.101 H 317.1°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#2A0136
RGBrgb(42, 1, 54)
HSLhsl(286, 96%, 11%)
HSVhsv(286, 98%, 21%)
CMYKcmyk(22.2%, 98.1%, 0%, 78.8%)
CIE-LABlab(7.05, 29.63, -24.18)
CIE-LCHlch(7.05, 38.24, 320.79°)
OKLaboklab(21.2% 0.0737 -0.0685)
OKLCHoklch(21.2% 0.101 317.1)
XYZxyz(1.6315, 0.7804, 3.5540)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0136 #0D3601
analogous
#0F0136 #2A0136 #360127
triadic
#2A0136 #362A01 #01362A
tetradic
#2A0136 #360F01 #0D3601 #012736
square
#2A0136 #360F01 #0D3601 #012736
split-complementary
#2A0136 #273601 #01360F
monochromatic
#17011E #17011E #2A0136 #590272 #8703AE

Accessibility & contrast

On white

18.17
#2A0136 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2A0136 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0136
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0136#FFFFFF#000000##FFFFFF
##2A01361.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001337
Deuteranopia (green-blind)
#011735
Tritanopia (blue-blind)
#290D1C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a0136;
/* rgb */ color: rgb(42, 1, 54);
/* oklch */ color: oklch(21.2% 0.101 317.1);
Tailwind
colors: {
  custom: {
    50: '#66476d',
    500: '#2a0136',
    950: '#000000',
  },
}
SCSS
$custom: #2a0136;
$custom-light: #66476d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0136",
  "rgb": {
    "r": 42,
    "g": 1,
    "b": 54
  },
  "hsl": {
    "h": 286.415,
    "s": 96.364,
    "l": 10.784
  },
  "oklch": {
    "l": 0.21199,
    "c": 0.10057,
    "h": 317.1
  },
  "luminance": 0.0078
}

Semantic roles & 50–950 ramp

primary
#2A0136
secondary
#2E7B18
accent
#FF2959
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060007
muted
#7A777A

Preview Lab

Preview with #2A0136

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

Preview Lab → · Contrast checker → · Palette generator →

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