#2B1584#2B1584

#2B1584 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.168 H 280.1°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#2B1584
RGBrgb(43, 21, 132)
HSLhsl(252, 73%, 30%)
HSVhsv(252, 84%, 52%)
CMYKcmyk(67.4%, 84.1%, 0%, 48.2%)
CIE-LABlab(18.87, 42.26, -57.36)
CIE-LCHlch(18.87, 71.25, 306.38°)
OKLaboklab(31.97% 0.0296 -0.1656)
OKLCHoklch(31.97% 0.168 280.1)
XYZxyz(5.4280, 2.7154, 22.0634)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1584 #6E8415
analogous
#153684 #2B1584 #631584
triadic
#2B1584 #842B15 #15842B
tetradic
#2B1584 #841536 #6E8415 #158463
square
#2B1584 #841536 #6E8415 #158463
split-complementary
#2B1584 #846315 #368415
monochromatic
#09041A #1A0D4F #2B1584 #3C1DB9 #5635DF

Accessibility & contrast

On white

13.61
#2B1584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2B1584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1584
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1584#FFFFFF#000000##FFFFFF
##2B15841.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b1584;
/* rgb */ color: rgb(43, 21, 132);
/* oklch */ color: oklch(32.0% 0.168 280.1);
Tailwind
colors: {
  custom: {
    50: '#7257a9',
    500: '#2b1584',
    950: '#000000',
  },
}
SCSS
$custom: #2b1584;
$custom-light: #7257a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1584",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 251.892,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.31967,
    "c": 0.16821,
    "h": 280.1
  },
  "luminance": 0.02716
}

Semantic roles & 50–950 ramp

primary
#2B1584
secondary
#A0B93C
accent
#EF39CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1584

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

Preview Lab → · Contrast checker → · Palette generator →

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