#2B1589#2B1589

#2B1589 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.174 H 279.2°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#2B1589
RGBrgb(43, 21, 137)
HSLhsl(251, 73%, 31%)
HSVhsv(251, 85%, 54%)
CMYKcmyk(68.6%, 84.7%, 0%, 46.3%)
CIE-LABlab(19.46, 43.78, -59.53)
CIE-LCHlch(19.46, 73.89, 306.33°)
OKLaboklab(32.55% 0.0279 -0.1719)
OKLCHoklch(32.55% 0.174 279.2)
XYZxyz(5.7783, 2.8556, 23.9087)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1589 #738915
analogous
#153989 #2B1589 #651589
triadic
#2B1589 #892B15 #15892B
tetradic
#2B1589 #891539 #738915 #158965
square
#2B1589 #891539 #738915 #158965
split-complementary
#2B1589 #896515 #398915
monochromatic
#0A051F #1A0D54 #2B1589 #3C1DBE #5838E0

Accessibility & contrast

On white

13.37
#2B1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B1589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1589
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1589#FFFFFF#000000##FFFFFF
##2B15891.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1589;
/* rgb */ color: rgb(43, 21, 137);
/* oklch */ color: oklch(32.5% 0.174 279.2);
Tailwind
colors: {
  custom: {
    50: '#7357ad',
    500: '#2b1589',
    950: '#000000',
  },
}
SCSS
$custom: #2b1589;
$custom-light: #7357ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1589",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 251.379,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32547,
    "c": 0.17415,
    "h": 279.2
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#2B1589
secondary
#A5BD3D
accent
#F038CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1589

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

Preview Lab → · Contrast checker → · Palette generator →

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