#2B1580#2B1580

#2B1580 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.163 H 280.9°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2B1580
RGBrgb(43, 21, 128)
HSLhsl(252, 72%, 29%)
HSVhsv(252, 84%, 50%)
CMYKcmyk(66.4%, 83.6%, 0%, 49.8%)
CIE-LABlab(18.40, 41.04, -55.60)
CIE-LCHlch(18.40, 69.10, 306.44°)
OKLaboklab(31.51% 0.031 -0.1604)
OKLCHoklch(31.51% 0.163 280.9)
XYZxyz(5.1595, 2.6080, 20.6494)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1580 #6A8015
analogous
#153580 #2B1580 #611580
triadic
#2B1580 #802B15 #15802B
tetradic
#2B1580 #801535 #6A8015 #158061
square
#2B1580 #801535 #6A8015 #158061
split-complementary
#2B1580 #806115 #358015
monochromatic
#09041A #190C4B #2B1580 #3D1EB5 #5532DD

Accessibility & contrast

On white

13.80
#2B1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2B1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1580
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1580#FFFFFF#000000##FFFFFF
##2B15801.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1580;
/* rgb */ color: rgb(43, 21, 128);
/* oklch */ color: oklch(31.5% 0.163 280.9);
Tailwind
colors: {
  custom: {
    50: '#7157a6',
    500: '#2b1580',
    950: '#000000',
  },
}
SCSS
$custom: #2b1580;
$custom-light: #7157a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1580",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 252.336,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31509,
    "c": 0.16341,
    "h": 280.9
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#2B1580
secondary
#9CB53C
accent
#EF39C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B1580

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

Preview Lab → · Contrast checker → · Palette generator →

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