#2B012A#2B012A

#2B012A is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.4% C 0.090 H 329.3°. Best body text is #FFFFFF at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#2B012A
RGBrgb(43, 1, 42)
HSLhsl(301, 95%, 9%)
HSVhsv(301, 98%, 17%)
CMYKcmyk(0%, 97.7%, 2.3%, 83.1%)
CIE-LABlab(6.35, 26.97, -16.36)
CIE-LCHlch(6.35, 31.54, 328.76°)
OKLaboklab(20.37% 0.0775 -0.046)
OKLCHoklch(20.37% 0.09 329.3)
XYZxyz(1.4250, 0.7026, 2.2506)
Luminance0.0070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B012A #012B02
analogous
#17012B #2B012A #2B0115
triadic
#2B012A #2A2B01 #012A2B
tetradic
#2B012A #2B1701 #012B02 #01152B
square
#2B012A #2B1701 #012B02 #01152B
split-complementary
#2B012A #152B01 #012B17
monochromatic
#1E011D #1E011D #2B012A #670264 #A3049F

Accessibility & contrast

On white

18.41
#2B012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B012A
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B012A#FFFFFF#000000##FFFFFF
##2B012A1.0018.411.1418.41
#FFFFFF18.411.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102B
Deuteranopia (green-blind)
#0D1629
Tritanopia (blue-blind)
#2D0615
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2b012a;
/* rgb */ color: rgb(43, 1, 42);
/* oklch */ color: oklch(20.4% 0.090 329.3);
Tailwind
colors: {
  custom: {
    50: '#664763',
    500: '#2b012a',
    950: '#000000',
  },
}
SCSS
$custom: #2b012a;
$custom-light: #664763;
$custom-dark: #000000;
JSON
{
  "hex": "#2b012a",
  "rgb": {
    "r": 43,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 301.429,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.20367,
    "c": 0.09017,
    "h": 329.3
  },
  "luminance": 0.00702
}

Semantic roles & 50–950 ramp

primary
#2B012A
secondary
#177119
accent
#FF2E29
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#060005
muted
#7A7779

Preview Lab

Preview with #2B012A

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

Preview Lab → · Contrast checker → · Palette generator →

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