#2B1981#2B1981

#2B1981 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.161 H 280.2°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2B1981
RGBrgb(43, 25, 129)
HSLhsl(250, 68%, 30%)
HSVhsv(250, 81%, 51%)
CMYKcmyk(66.7%, 80.6%, 0%, 49.4%)
CIE-LABlab(19.20, 39.37, -54.91)
CIE-LCHlch(19.20, 67.57, 305.64°)
OKLaboklab(32.1% 0.0284 -0.1585)
OKLCHoklch(32.1% 0.161 280.2)
XYZxyz(5.3051, 2.7934, 21.0242)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1981 #6F8119
analogous
#193B81 #2B1981 #5F1981
triadic
#2B1981 #812B19 #19812B
tetradic
#2B1981 #81193B #6F8119 #19815F
square
#2B1981 #81193B #6F8119 #19815F
split-complementary
#2B1981 #815F19 #3B8119
monochromatic
#09051A #1A0F4E #2B1981 #3C23B4 #573BD9

Accessibility & contrast

On white

13.47
#2B1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1981
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1981#FFFFFF#000000##FFFFFF
##2B19811.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1981;
/* rgb */ color: rgb(43, 25, 129);
/* oklch */ color: oklch(32.1% 0.161 280.2);
Tailwind
colors: {
  custom: {
    50: '#7159a7',
    500: '#2b1981',
    950: '#000000',
  },
}
SCSS
$custom: #2b1981;
$custom-light: #7159a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1981",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 250.385,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32096,
    "c": 0.16105,
    "h": 280.2
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#2B1981
secondary
#A1B541
accent
#EA3DCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1981

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

Preview Lab → · Contrast checker → · Palette generator →

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