#2A012E#2A012E

#2A012E is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.5% C 0.093 H 324.3°. Best body text is #FFFFFF at 18.39:1 contrast (WCAG AA passes).

Color values

HEX#2A012E
RGBrgb(42, 1, 46)
HSLhsl(295, 96%, 9%)
HSVhsv(295, 98%, 18%)
CMYKcmyk(8.7%, 97.8%, 0%, 82%)
CIE-LABlab(6.43, 27.60, -19.26)
CIE-LCHlch(6.43, 33.65, 325.09°)
OKLaboklab(20.49% 0.0757 -0.0544)
OKLCHoklch(20.49% 0.093 324.3)
XYZxyz(1.4588, 0.7113, 2.6447)
Luminance0.0071 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A012E #052E01
analogous
#14012E #2A012E #2E011C
triadic
#2A012E #2E2A01 #012E2A
tetradic
#2A012E #2E1401 #052E01 #011C2E
square
#2A012E #2E1401 #052E01 #011C2E
split-complementary
#2A012E #1C2E01 #012E14
monochromatic
#1B011E #1B011E #2A012E #61026A #9704A6

Accessibility & contrast

On white

18.39
#2A012E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#2A012E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A012E
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A012E#FFFFFF#000000##FFFFFF
##2A012E1.0018.391.1418.39
#FFFFFF18.391.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112F
Deuteranopia (green-blind)
#08162D
Tritanopia (blue-blind)
#2B0817
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2a012e;
/* rgb */ color: rgb(42, 1, 46);
/* oklch */ color: oklch(20.5% 0.093 324.3);
Tailwind
colors: {
  custom: {
    50: '#664767',
    500: '#2a012e',
    950: '#000000',
  },
}
SCSS
$custom: #2a012e;
$custom-light: #664767;
$custom-dark: #000000;
JSON
{
  "hex": "#2a012e",
  "rgb": {
    "r": 42,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 294.667,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.20491,
    "c": 0.09322,
    "h": 324.3
  },
  "luminance": 0.00711
}

Semantic roles & 50–950 ramp

primary
#2A012E
secondary
#1F7417
accent
#FF293C
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #2A012E

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

Preview Lab → · Contrast checker → · Palette generator →

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