#2B012B#2B012B

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

Color values

HEX#2B012B
RGBrgb(43, 1, 43)
HSLhsl(300, 95%, 9%)
HSVhsv(300, 98%, 17%)
CMYKcmyk(0%, 97.7%, 0%, 83.1%)
CIE-LABlab(6.41, 27.21, -17.01)
CIE-LCHlch(6.41, 32.09, 327.98°)
OKLaboklab(20.45% 0.0775 -0.0478)
OKLCHoklch(20.45% 0.091 328.3)
XYZxyz(1.4431, 0.7098, 2.3460)
Luminance0.0071 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B012B #012B01
analogous
#16012B #2B012B #2B0116
triadic
#2B012B #2B2B01 #012B2B
tetradic
#2B012B #2B1601 #012B01 #01162B
square
#2B012B #2B1601 #012B01 #01162B
split-complementary
#2B012B #162B01 #012B16
monochromatic
#1E011E #1E011E #2B012B #670267 #A304A3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B012B#FFFFFF#000000##FFFFFF
##2B012B1.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)
#00112C
Deuteranopia (green-blind)
#0C162A
Tritanopia (blue-blind)
#2D0615
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2b012b;
/* rgb */ color: rgb(43, 1, 43);
/* oklch */ color: oklch(20.4% 0.091 328.3);
Tailwind
colors: {
  custom: {
    50: '#664764',
    500: '#2b012b',
    950: '#000000',
  },
}
SCSS
$custom: #2b012b;
$custom-light: #664764;
$custom-dark: #000000;
JSON
{
  "hex": "#2b012b",
  "rgb": {
    "r": 43,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 300,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.20445,
    "c": 0.09104,
    "h": 328.3
  },
  "luminance": 0.0071
}

Semantic roles & 50–950 ramp

primary
#2B012B
secondary
#177117
accent
#FF2929
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060005
muted
#7A777A

Preview Lab

Preview with #2B012B

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

Preview Lab → · Contrast checker → · Palette generator →

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