#2B012E#2B012E

#2B012E is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.7% C 0.094 H 325.3°. Best body text is #FFFFFF at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#2B012E
RGBrgb(43, 1, 46)
HSLhsl(296, 96%, 9%)
HSVhsv(296, 98%, 18%)
CMYKcmyk(6.5%, 97.8%, 0%, 82%)
CIE-LABlab(6.62, 27.93, -18.94)
CIE-LCHlch(6.62, 33.74, 325.86°)
OKLaboklab(20.69% 0.077 -0.0533)
OKLCHoklch(20.69% 0.094 325.3)
XYZxyz(1.5002, 0.7327, 2.6466)
Luminance0.0073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B012E #042E01
analogous
#15012E #2B012E #2E011B
triadic
#2B012E #2E2B01 #012E2B
tetradic
#2B012E #2E1501 #042E01 #011B2E
square
#2B012E #2E1501 #042E01 #011B2E
split-complementary
#2B012E #1B2E01 #012E15
monochromatic
#1C011E #1C011E #2B012E #63026A #9B04A6

Accessibility & contrast

On white

18.32
#2B012E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B012E
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B012E#FFFFFF#000000##FFFFFF
##2B012E1.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112F
Deuteranopia (green-blind)
#0A162D
Tritanopia (blue-blind)
#2C0817
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2b012e;
/* rgb */ color: rgb(43, 1, 46);
/* oklch */ color: oklch(20.7% 0.094 325.3);
Tailwind
colors: {
  custom: {
    50: '#674767',
    500: '#2b012e',
    950: '#000000',
  },
}
SCSS
$custom: #2b012e;
$custom-light: #674767;
$custom-dark: #000000;
JSON
{
  "hex": "#2b012e",
  "rgb": {
    "r": 43,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 296,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.20687,
    "c": 0.09368,
    "h": 325.3
  },
  "luminance": 0.00733
}

Semantic roles & 50–950 ramp

primary
#2B012E
secondary
#1D7417
accent
#FF2937
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #2B012E

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

Preview Lab → · Contrast checker → · Palette generator →

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