#2B052A#2B052A

#2B052A is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.0% C 0.082 H 329.1°. Best body text is #FFFFFF at 18.14:1 contrast (WCAG AA passes).

Color values

HEX#2B052A
RGBrgb(43, 5, 42)
HSLhsl(302, 79%, 9%)
HSVhsv(302, 88%, 17%)
CMYKcmyk(0%, 88.4%, 2.3%, 83.1%)
CIE-LABlab(7.13, 24.83, -15.13)
CIE-LCHlch(7.13, 29.07, 328.65°)
OKLaboklab(20.99% 0.0703 -0.042)
OKLCHoklch(20.99% 0.082 329.1)
XYZxyz(1.4684, 0.7894, 2.2651)
Luminance0.0079 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B052A #052B06
analogous
#19052B #2B052A #2B0517
triadic
#2B052A #2A2B05 #052A2B
tetradic
#2B052A #2B1905 #052B06 #05172B
square
#2B052A #2B1905 #052B06 #05172B
split-complementary
#2B052A #172B05 #052B19
monochromatic
#1B031B #1B031B #2B052A #620B60 #991295

Accessibility & contrast

On white

18.14
#2B052A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2B052A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B052A
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B052A#FFFFFF#000000##FFFFFF
##2B052A1.0018.141.1618.14
#FFFFFF18.141.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02122B
Deuteranopia (green-blind)
#0F1829
Tritanopia (blue-blind)
#2D0A16
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2b052a;
/* rgb */ color: rgb(43, 5, 42);
/* oklch */ color: oklch(21.0% 0.082 329.1);
Tailwind
colors: {
  custom: {
    50: '#664963',
    500: '#2b052a',
    950: '#000000',
  },
}
SCSS
$custom: #2b052a;
$custom-light: #664963;
$custom-dark: #000000;
JSON
{
  "hex": "#2b052a",
  "rgb": {
    "r": 43,
    "g": 5,
    "b": 42
  },
  "hsl": {
    "h": 301.579,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.20992,
    "c": 0.08185,
    "h": 329.1
  },
  "luminance": 0.00789
}

Semantic roles & 50–950 ramp

primary
#2B052A
secondary
#1F6D21
accent
#F63732
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#060105
muted
#7A7779

Preview Lab

Preview with #2B052A

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

Preview Lab → · Contrast checker → · Palette generator →

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