#2B1884#2B1884

#2B1884 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.166 H 279.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#2B1884
RGBrgb(43, 24, 132)
HSLhsl(251, 69%, 31%)
HSVhsv(251, 82%, 52%)
CMYKcmyk(67.4%, 81.8%, 0%, 48.2%)
CIE-LABlab(19.36, 40.82, -56.54)
CIE-LCHlch(19.36, 69.74, 305.83°)
OKLaboklab(32.31% 0.0281 -0.1632)
OKLCHoklch(32.31% 0.166 279.8)
XYZxyz(5.4864, 2.8324, 22.0829)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1884 #718418
analogous
#183B84 #2B1884 #611884
triadic
#2B1884 #842B18 #18842B
tetradic
#2B1884 #84183B #718418 #188461
square
#2B1884 #84183B #718418 #188461
split-complementary
#2B1884 #846118 #3B8418
monochromatic
#09051C #1A0F50 #2B1884 #3C21B8 #573BDB

Accessibility & contrast

On white

13.40
#2B1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1884
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1884#FFFFFF#000000##FFFFFF
##2B18841.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1884;
/* rgb */ color: rgb(43, 24, 132);
/* oklch */ color: oklch(32.3% 0.166 279.8);
Tailwind
colors: {
  custom: {
    50: '#7259a9',
    500: '#2b1884',
    950: '#000000',
  },
}
SCSS
$custom: #2b1884;
$custom-light: #7259a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1884",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 250.556,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32309,
    "c": 0.16565,
    "h": 279.8
  },
  "luminance": 0.02833
}

Semantic roles & 50–950 ramp

primary
#2B1884
secondary
#A3B840
accent
#EC3CCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1884

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

Preview Lab → · Contrast checker → · Palette generator →

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