#2B072A#2B072A

#2B072A is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.3% C 0.078 H 329.1°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#2B072A
RGBrgb(43, 7, 42)
HSLhsl(302, 72%, 10%)
HSVhsv(302, 84%, 17%)
CMYKcmyk(0%, 83.7%, 2.3%, 83.1%)
CIE-LABlab(7.52, 23.75, -14.51)
CIE-LCHlch(7.52, 27.83, 328.58°)
OKLaboklab(21.29% 0.0669 -0.0401)
OKLCHoklch(21.29% 0.078 329.1)
XYZxyz(1.4901, 0.8328, 2.2723)
Luminance0.0083 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B072A #072B08
analogous
#1A072B #2B072A #2B0718
triadic
#2B072A #2A2B07 #072A2B
tetradic
#2B072A #2B1A07 #072B08 #07182B
square
#2B072A #2B1A07 #072B08 #07182B
split-complementary
#2B072A #182B07 #072B1A
monochromatic
#1A041A #1A041A #2B072A #60105D #941891

Accessibility & contrast

On white

18.00
#2B072A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2B072A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B072A
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B072A#FFFFFF#000000##FFFFFF
##2B072A1.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04132B
Deuteranopia (green-blind)
#111829
Tritanopia (blue-blind)
#2D0B17
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2b072a;
/* rgb */ color: rgb(43, 7, 42);
/* oklch */ color: oklch(21.3% 0.078 329.1);
Tailwind
colors: {
  custom: {
    50: '#664a63',
    500: '#2b072a',
    950: '#000000',
  },
}
SCSS
$custom: #2b072a;
$custom-light: #664a63;
$custom-dark: #000000;
JSON
{
  "hex": "#2b072a",
  "rgb": {
    "r": 43,
    "g": 7,
    "b": 42
  },
  "hsl": {
    "h": 301.667,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21291,
    "c": 0.078,
    "h": 329.1
  },
  "luminance": 0.00833
}

Semantic roles & 50–950 ramp

primary
#2B072A
secondary
#236B25
accent
#EF3E39
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#060105
muted
#7A7779

Preview Lab

Preview with #2B072A

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

Preview Lab → · Contrast checker → · Palette generator →

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