#2B1127#2B1127

#2B1127 is a very dark, muted purple. Relative luminance 0.011; OKLCH L 22.7% C 0.055 H 333.3°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#2B1127
RGBrgb(43, 17, 39)
HSLhsl(309, 43%, 12%)
HSVhsv(309, 60%, 17%)
CMYKcmyk(0%, 60.5%, 9.3%, 83.1%)
CIE-LABlab(9.49, 17.27, -9.18)
CIE-LCHlch(9.49, 19.56, 332.00°)
OKLaboklab(22.68% 0.0495 -0.0249)
OKLCHoklch(22.68% 0.055 333.3)
XYZxyz(1.5629, 1.0611, 2.0415)
Luminance0.0106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1127 #112B15
analogous
#22112B #2B1127 #2B111A
triadic
#2B1127 #272B11 #11272B
tetradic
#2B1127 #2B2211 #112B15 #111A2B
square
#2B1127 #2B2211 #112B15 #111A2B
split-complementary
#2B1127 #1A2B11 #112B22
monochromatic
#160914 #160914 #2B1127 #57224F #833477

Accessibility & contrast

On white

17.32
#2B1127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2B1127 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1127
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1127#FFFFFF#000000##FFFFFF
##2B11271.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111828
Deuteranopia (green-blind)
#181C26
Tritanopia (blue-blind)
#2D131A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2b1127;
/* rgb */ color: rgb(43, 17, 39);
/* oklch */ color: oklch(22.7% 0.055 333.3);
Tailwind
colors: {
  custom: {
    50: '#655061',
    500: '#2b1127',
    950: '#000000',
  },
}
SCSS
$custom: #2b1127;
$custom-light: #655061;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1127",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 39
  },
  "hsl": {
    "h": 309.231,
    "s": 43.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.2268,
    "c": 0.05546,
    "h": 333.3
  },
  "luminance": 0.01061
}

Semantic roles & 50–950 ramp

primary
#2B1127
secondary
#35633C
accent
#D36855
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#060205
muted
#7A7879

Preview Lab

Preview with #2B1127

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

Preview Lab → · Contrast checker → · Palette generator →

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