#2A012C#2A012C

#2A012C is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.3% C 0.091 H 326.2°. Best body text is #FFFFFF at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#2A012C
RGBrgb(42, 1, 44)
HSLhsl(297, 96%, 9%)
HSVhsv(297, 98%, 17%)
CMYKcmyk(4.5%, 97.7%, 0%, 82.7%)
CIE-LABlab(6.29, 27.09, -17.98)
CIE-LCHlch(6.29, 32.52, 326.44°)
OKLaboklab(20.33% 0.076 -0.0508)
OKLCHoklch(20.33% 0.091 326.2)
XYZxyz(1.4203, 0.6959, 2.4419)
Luminance0.0070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A012C #032C01
analogous
#15012C #2A012C #2C0119
triadic
#2A012C #2C2A01 #012C2A
tetradic
#2A012C #2C1501 #032C01 #01192C
square
#2A012C #2C1501 #032C01 #01192C
split-complementary
#2A012C #192C01 #012C15
monochromatic
#1D011E #1D011E #2A012C #630268 #9C04A4

Accessibility & contrast

On white

18.43
#2A012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A012C
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A012C#FFFFFF#000000##FFFFFF
##2A012C1.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102D
Deuteranopia (green-blind)
#0A162B
Tritanopia (blue-blind)
#2B0716
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2a012c;
/* rgb */ color: rgb(42, 1, 44);
/* oklch */ color: oklch(20.3% 0.091 326.2);
Tailwind
colors: {
  custom: {
    50: '#664765',
    500: '#2a012c',
    950: '#000000',
  },
}
SCSS
$custom: #2a012c;
$custom-light: #664765;
$custom-dark: #000000;
JSON
{
  "hex": "#2a012c",
  "rgb": {
    "r": 42,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 297.209,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.20325,
    "c": 0.09143,
    "h": 326.2
  },
  "luminance": 0.00696
}

Semantic roles & 50–950 ramp

primary
#2A012C
secondary
#1B7217
accent
#FF2933
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060005
muted
#7A777A

Preview Lab

Preview with #2A012C

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

Preview Lab → · Contrast checker → · Palette generator →

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