#2B1982#2B1982

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

Color values

HEX#2B1982
RGBrgb(43, 25, 130)
HSLhsl(250, 68%, 30%)
HSVhsv(250, 81%, 51%)
CMYKcmyk(66.9%, 80.8%, 0%, 49%)
CIE-LABlab(19.31, 39.69, -55.36)
CIE-LCHlch(19.31, 68.12, 305.64°)
OKLaboklab(32.21% 0.0281 -0.1598)
OKLCHoklch(32.21% 0.162 280)
XYZxyz(5.3719, 2.8201, 21.3760)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1982 #708219
analogous
#193B82 #2B1982 #601982
triadic
#2B1982 #822B19 #19822B
tetradic
#2B1982 #82193B #708219 #198260
square
#2B1982 #82193B #708219 #198260
split-complementary
#2B1982 #826019 #3B8219
monochromatic
#09051B #1A0F4F #2B1982 #3C23B5 #573CD9

Accessibility & contrast

On white

13.43
#2B1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1982
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1982#FFFFFF#000000##FFFFFF
##2B19821.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1982;
/* rgb */ color: rgb(43, 25, 130);
/* oklch */ color: oklch(32.2% 0.162 280.0);
Tailwind
colors: {
  custom: {
    50: '#7259a7',
    500: '#2b1982',
    950: '#000000',
  },
}
SCSS
$custom: #2b1982;
$custom-light: #7259a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1982",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 250.286,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32207,
    "c": 0.16227,
    "h": 280
  },
  "luminance": 0.02821
}

Semantic roles & 50–950 ramp

primary
#2B1982
secondary
#A2B641
accent
#EB3DCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1982

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

Preview Lab → · Contrast checker → · Palette generator →

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