#2B1581#2B1581

#2B1581 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.165 H 280.7°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2B1581
RGBrgb(43, 21, 129)
HSLhsl(252, 72%, 29%)
HSVhsv(252, 84%, 51%)
CMYKcmyk(66.7%, 83.7%, 0%, 49.4%)
CIE-LABlab(18.52, 41.35, -56.04)
CIE-LCHlch(18.52, 69.64, 306.42°)
OKLaboklab(31.62% 0.0306 -0.1617)
OKLCHoklch(31.62% 0.165 280.7)
XYZxyz(5.2256, 2.6345, 20.9978)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1581 #6B8115
analogous
#153581 #2B1581 #611581
triadic
#2B1581 #812B15 #15812B
tetradic
#2B1581 #811535 #6B8115 #158161
square
#2B1581 #811535 #6B8115 #158161
split-complementary
#2B1581 #816115 #358115
monochromatic
#09041A #190C4C #2B1581 #3D1EB6 #5633DE

Accessibility & contrast

On white

13.75
#2B1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2B1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1581
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1581#FFFFFF#000000##FFFFFF
##2B15811.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1581;
/* rgb */ color: rgb(43, 21, 129);
/* oklch */ color: oklch(31.6% 0.165 280.7);
Tailwind
colors: {
  custom: {
    50: '#7257a7',
    500: '#2b1581',
    950: '#000000',
  },
}
SCSS
$custom: #2b1581;
$custom-light: #7257a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1581",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 252.222,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31623,
    "c": 0.16461,
    "h": 280.7
  },
  "luminance": 0.02635
}

Semantic roles & 50–950 ramp

primary
#2B1581
secondary
#9DB63C
accent
#EF39CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1581

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

Preview Lab → · Contrast checker → · Palette generator →

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