#2B1784#2B1784

#2B1784 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.167 H 279.9°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#2B1784
RGBrgb(43, 23, 132)
HSLhsl(251, 70%, 30%)
HSVhsv(251, 83%, 52%)
CMYKcmyk(67.4%, 82.6%, 0%, 48.2%)
CIE-LABlab(19.19, 41.31, -56.82)
CIE-LCHlch(19.19, 70.25, 306.02°)
OKLaboklab(32.19% 0.0286 -0.164)
OKLCHoklch(32.19% 0.167 279.9)
XYZxyz(5.4662, 2.7919, 22.0762)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1784 #708417
analogous
#173984 #2B1784 #611784
triadic
#2B1784 #842B17 #17842B
tetradic
#2B1784 #841739 #708417 #178461
square
#2B1784 #841739 #708417 #178461
split-complementary
#2B1784 #846117 #398417
monochromatic
#09051C #1A0E50 #2B1784 #3C20B8 #5739DC

Accessibility & contrast

On white

13.48
#2B1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2B1784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1784
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1784#FFFFFF#000000##FFFFFF
##2B17841.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1784;
/* rgb */ color: rgb(43, 23, 132);
/* oklch */ color: oklch(32.2% 0.167 279.9);
Tailwind
colors: {
  custom: {
    50: '#7258a9',
    500: '#2b1784',
    950: '#000000',
  },
}
SCSS
$custom: #2b1784;
$custom-light: #7258a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1784",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 251.009,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32192,
    "c": 0.16653,
    "h": 279.9
  },
  "luminance": 0.02792
}

Semantic roles & 50–950 ramp

primary
#2B1784
secondary
#A2B83F
accent
#ED3BCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1784

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

Preview Lab → · Contrast checker → · Palette generator →

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