#2B1561#2B1561

#2B1561 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.125 H 289.0°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#2B1561
RGBrgb(43, 21, 97)
HSLhsl(257, 64%, 23%)
HSVhsv(257, 78%, 38%)
CMYKcmyk(55.7%, 78.4%, 0%, 62%)
CIE-LABlab(15.02, 31.37, -41.04)
CIE-LCHlch(15.02, 51.66, 307.40°)
OKLaboklab(28.14% 0.0406 -0.1179)
OKLCHoklch(28.14% 0.125 289)
XYZxyz(3.4215, 1.9128, 11.4959)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1561 #4B6115
analogous
#152561 #2B1561 #511561
triadic
#2B1561 #612B15 #15612B
tetradic
#2B1561 #611525 #4B6115 #156151
square
#2B1561 #611525 #4B6115 #156151
split-complementary
#2B1561 #615115 #256115
monochromatic
#0B0519 #150A2F #2B1561 #412093 #582BC6

Accessibility & contrast

On white

15.19
#2B1561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B1561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1561
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1561#FFFFFF#000000##FFFFFF
##2B15611.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#172A3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1561;
/* rgb */ color: rgb(43, 21, 97);
/* oklch */ color: oklch(28.1% 0.125 289.0);
Tailwind
colors: {
  custom: {
    50: '#6b558f',
    500: '#2b1561',
    950: '#000000',
  },
}
SCSS
$custom: #2b1561;
$custom-light: #6b558f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1561",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 257.368,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28139,
    "c": 0.12473,
    "h": 289
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#2B1561
secondary
#7D983A
accent
#E740B7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B1561

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

Preview Lab → · Contrast checker → · Palette generator →

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