#2B0731#2B0731

#2B0731 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.8% C 0.085 H 321.6°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#2B0731
RGBrgb(43, 7, 49)
HSLhsl(291, 75%, 11%)
HSVhsv(291, 86%, 19%)
CMYKcmyk(12.2%, 85.7%, 0%, 80.8%)
CIE-LABlab(8.02, 25.33, -18.94)
CIE-LCHlch(8.02, 31.63, 323.22°)
OKLaboklab(21.81% 0.0668 -0.053)
OKLCHoklch(21.81% 0.085 321.6)
XYZxyz(1.6266, 0.8874, 2.9907)
Luminance0.0089 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0731 #0D3107
analogous
#160731 #2B0731 #310722
triadic
#2B0731 #312B07 #07312B
tetradic
#2B0731 #311607 #0D3107 #072231
square
#2B0731 #311607 #0D3107 #072231
split-complementary
#2B0731 #223107 #073116
monochromatic
#17041B #17041B #2B0731 #5A0F67 #89169C

Accessibility & contrast

On white

17.84
#2B0731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2B0731 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0731
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0731#FFFFFF#000000##FFFFFF
##2B07311.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#0C1930
Tritanopia (blue-blind)
#2C0F1B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2b0731;
/* rgb */ color: rgb(43, 7, 49);
/* oklch */ color: oklch(21.8% 0.085 321.6);
Tailwind
colors: {
  custom: {
    50: '#664a69',
    500: '#2b0731',
    950: '#000000',
  },
}
SCSS
$custom: #2b0731;
$custom-light: #664a69;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0731",
  "rgb": {
    "r": 43,
    "g": 7,
    "b": 49
  },
  "hsl": {
    "h": 291.429,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21813,
    "c": 0.08524,
    "h": 321.6
  },
  "luminance": 0.00887
}

Semantic roles & 50–950 ramp

primary
#2B0731
secondary
#2E7123
accent
#F23651
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2B0731

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

Preview Lab → · Contrast checker → · Palette generator →

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