#2B0538#2B0538

#2B0538 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.1% C 0.096 H 315.7°. Best body text is #FFFFFF at 17.77:1 contrast (WCAG AA passes).

Color values

HEX#2B0538
RGBrgb(43, 5, 56)
HSLhsl(285, 84%, 12%)
HSVhsv(285, 91%, 22%)
CMYKcmyk(23.2%, 91.1%, 0%, 78%)
CIE-LABlab(8.20, 28.09, -23.77)
CIE-LCHlch(8.20, 36.79, 319.76°)
OKLaboklab(22.12% 0.0686 -0.0671)
OKLCHoklch(22.12% 0.096 315.7)
XYZxyz(1.7642, 0.9077, 3.8229)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0538 #123805
analogous
#120538 #2B0538 #38052C
triadic
#2B0538 #382B05 #05382B
tetradic
#2B0538 #381205 #123805 #052C38
square
#2B0538 #381205 #123805 #052C38
split-complementary
#2B0538 #2C3805 #053812
monochromatic
#16031C #16031C #2B0538 #560A70 #810FA8

Accessibility & contrast

On white

17.77
#2B0538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2B0538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0538
17.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0538#FFFFFF#000000##FFFFFF
##2B05381.0017.771.1817.77
#FFFFFF17.771.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#041937
Tritanopia (blue-blind)
#2A101E
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2b0538;
/* rgb */ color: rgb(43, 5, 56);
/* oklch */ color: oklch(22.1% 0.096 315.7);
Tailwind
colors: {
  custom: {
    50: '#674a6f',
    500: '#2b0538',
    950: '#000000',
  },
}
SCSS
$custom: #2b0538;
$custom-light: #674a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0538",
  "rgb": {
    "r": 43,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 284.706,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22124,
    "c": 0.09599,
    "h": 315.7
  },
  "luminance": 0.00908
}

Semantic roles & 50–950 ramp

primary
#2B0538
secondary
#367920
accent
#FA2E62
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2B0538

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

Preview Lab → · Contrast checker → · Palette generator →

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