#2B1237#2B1237

#2B1237 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.073 H 313.4°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#2B1237
RGBrgb(43, 18, 55)
HSLhsl(281, 51%, 14%)
HSVhsv(281, 67%, 22%)
CMYKcmyk(21.8%, 67.3%, 0%, 78.4%)
CIE-LABlab(10.72, 20.58, -19.00)
CIE-LCHlch(10.72, 28.01, 317.28°)
OKLaboklab(23.91% 0.0503 -0.0532)
OKLCHoklch(23.91% 0.073 313.4)
XYZxyz(1.9020, 1.2221, 3.7494)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1237 #1E3712
analogous
#191237 #2B1237 #371231
triadic
#2B1237 #372B12 #12372B
tetradic
#2B1237 #371912 #1E3712 #123137
square
#2B1237 #371912 #1E3712 #123137
split-complementary
#2B1237 #313712 #123719
monochromatic
#120817 #120817 #2B1237 #4F2165 #733093

Accessibility & contrast

On white

16.88
#2B1237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2B1237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1237
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1237#FFFFFF#000000##FFFFFF
##2B12371.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071C38
Deuteranopia (green-blind)
#101E36
Tritanopia (blue-blind)
#2A1822
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2b1237;
/* rgb */ color: rgb(43, 18, 55);
/* oklch */ color: oklch(23.9% 0.073 313.4);
Tailwind
colors: {
  custom: {
    50: '#66516e',
    500: '#2b1237',
    950: '#000000',
  },
}
SCSS
$custom: #2b1237;
$custom-light: #66516e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1237",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 280.541,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23908,
    "c": 0.07326,
    "h": 313.4
  },
  "luminance": 0.01222
}

Semantic roles & 50–950 ramp

primary
#2B1237
secondary
#487035
accent
#DA4E7B
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #2B1237

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

Preview Lab → · Contrast checker → · Palette generator →

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