#2B0336#2B0336

#2B0336 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.7% C 0.097 H 317.7°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#2B0336
RGBrgb(43, 3, 54)
HSLhsl(287, 89%, 11%)
HSVhsv(287, 94%, 21%)
CMYKcmyk(20.4%, 94.4%, 0%, 78.8%)
CIE-LABlab(7.63, 28.75, -23.22)
CIE-LCHlch(7.63, 36.96, 321.07°)
OKLaboklab(21.67% 0.072 -0.0655)
OKLCHoklch(21.67% 0.097 317.7)
XYZxyz(1.6946, 0.8451, 3.5632)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0336 #0E3603
analogous
#110336 #2B0336 #360327
triadic
#2B0336 #362B03 #03362B
tetradic
#2B0336 #361103 #0E3603 #032736
square
#2B0336 #361103 #0E3603 #032736
split-complementary
#2B0336 #273603 #033611
monochromatic
#17021D #17021D #2B0336 #590670 #8709AA

Accessibility & contrast

On white

17.96
#2B0336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0336
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0336#FFFFFF#000000##FFFFFF
##2B03361.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001437
Deuteranopia (green-blind)
#041835
Tritanopia (blue-blind)
#2B0E1D
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2b0336;
/* rgb */ color: rgb(43, 3, 54);
/* oklch */ color: oklch(21.7% 0.097 317.7);
Tailwind
colors: {
  custom: {
    50: '#67486d',
    500: '#2b0336',
    950: '#000000',
  },
}
SCSS
$custom: #2b0336;
$custom-light: #67486d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0336",
  "rgb": {
    "r": 43,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 287.059,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.21669,
    "c": 0.09737,
    "h": 317.7
  },
  "luminance": 0.00845
}

Semantic roles & 50–950 ramp

primary
#2B0336
secondary
#30791C
accent
#FF2957
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2B0336

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

Preview Lab → · Contrast checker → · Palette generator →

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