#2B012D#2B012D

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

Color values

HEX#2B012D
RGBrgb(43, 1, 45)
HSLhsl(297, 96%, 9%)
HSVhsv(297, 98%, 18%)
CMYKcmyk(4.4%, 97.8%, 0%, 82.4%)
CIE-LABlab(6.55, 27.69, -18.30)
CIE-LCHlch(6.55, 33.19, 326.54°)
OKLaboklab(20.61% 0.0772 -0.0515)
OKLCHoklch(20.61% 0.093 326.3)
XYZxyz(1.4807, 0.7249, 2.5440)
Luminance0.0073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B012D #032D01
analogous
#15012D #2B012D #2D0119
triadic
#2B012D #2D2B01 #012D2B
tetradic
#2B012D #2D1501 #032D01 #01192D
square
#2B012D #2D1501 #032D01 #01192D
split-complementary
#2B012D #192D01 #012D15
monochromatic
#1D011E #1D011E #2B012D #640269 #9D04A5

Accessibility & contrast

On white

18.34
#2B012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2B012D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B012D
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B012D#FFFFFF#000000##FFFFFF
##2B012D1.0018.341.1518.34
#FFFFFF18.341.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112E
Deuteranopia (green-blind)
#0A162C
Tritanopia (blue-blind)
#2C0717
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2b012d;
/* rgb */ color: rgb(43, 1, 45);
/* oklch */ color: oklch(20.6% 0.093 326.3);
Tailwind
colors: {
  custom: {
    50: '#674766',
    500: '#2b012d',
    950: '#000000',
  },
}
SCSS
$custom: #2b012d;
$custom-light: #674766;
$custom-dark: #000000;
JSON
{
  "hex": "#2b012d",
  "rgb": {
    "r": 43,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 297.273,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.20605,
    "c": 0.0928,
    "h": 326.3
  },
  "luminance": 0.00725
}

Semantic roles & 50–950 ramp

primary
#2B012D
secondary
#1B7317
accent
#FF2933
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #2B012D

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

Preview Lab → · Contrast checker → · Palette generator →

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