#2B0C36#2B0C36

#2B0C36 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.9% C 0.083 H 316.0°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#2B0C36
RGBrgb(43, 12, 54)
HSLhsl(284, 64%, 13%)
HSVhsv(284, 78%, 21%)
CMYKcmyk(20.4%, 77.8%, 0%, 78.8%)
CIE-LABlab(9.34, 23.87, -20.47)
CIE-LCHlch(9.34, 31.45, 319.39°)
OKLaboklab(22.89% 0.0595 -0.0575)
OKLCHoklch(22.89% 0.083 316)
XYZxyz(1.7935, 1.0429, 3.5961)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0C36 #17360C
analogous
#160C36 #2B0C36 #360C2C
triadic
#2B0C36 #362B0C #0C362B
tetradic
#2B0C36 #36160C #17360C #0C2C36
square
#2B0C36 #36160C #17360C #0C2C36
split-complementary
#2B0C36 #2C360C #0C3616
monochromatic
#140619 #140619 #2B0C36 #531768 #7B229A

Accessibility & contrast

On white

17.38
#2B0C36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0C36
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0C36#FFFFFF#000000##FFFFFF
##2B0C361.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001837
Deuteranopia (green-blind)
#0C1B35
Tritanopia (blue-blind)
#2A141F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2b0c36;
/* rgb */ color: rgb(43, 12, 54);
/* oklch */ color: oklch(22.9% 0.083 316.0);
Tailwind
colors: {
  custom: {
    50: '#664d6d',
    500: '#2b0c36',
    950: '#000000',
  },
}
SCSS
$custom: #2b0c36;
$custom-light: #664d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0c36",
  "rgb": {
    "r": 43,
    "g": 12,
    "b": 54
  },
  "hsl": {
    "h": 284.286,
    "s": 63.636,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22887,
    "c": 0.0827,
    "h": 316
  },
  "luminance": 0.01043
}

Semantic roles & 50–950 ramp

primary
#2B0C36
secondary
#3E722C
accent
#E7416C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2B0C36

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

Preview Lab → · Contrast checker → · Palette generator →

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