#2B1476#2B1476

#2B1476 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.152 H 283.3°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#2B1476
RGBrgb(43, 20, 118)
HSLhsl(254, 71%, 27%)
HSVhsv(254, 83%, 46%)
CMYKcmyk(63.6%, 83.1%, 0%, 53.7%)
CIE-LABlab(17.09, 38.45, -51.37)
CIE-LCHlch(17.09, 64.16, 306.82°)
OKLaboklab(30.26% 0.0349 -0.1481)
OKLCHoklch(30.26% 0.152 283.3)
XYZxyz(4.5154, 2.3216, 17.3462)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1476 #5F7614
analogous
#142E76 #2B1476 #5C1476
triadic
#2B1476 #762B14 #14762B
tetradic
#2B1476 #76142E #5F7614 #14765C
square
#2B1476 #76142E #5F7614 #14765C
split-complementary
#2B1476 #765C14 #2E7614
monochromatic
#0A041A #180B42 #2B1476 #3E1DAA #532ADB

Accessibility & contrast

On white

14.34
#2B1476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2B1476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1476
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1476#FFFFFF#000000##FFFFFF
##2B14761.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002774
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b1476;
/* rgb */ color: rgb(43, 20, 118);
/* oklch */ color: oklch(30.3% 0.152 283.3);
Tailwind
colors: {
  custom: {
    50: '#6f569f',
    500: '#2b1476',
    950: '#000000',
  },
}
SCSS
$custom: #2b1476;
$custom-light: #6f569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1476",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 254.082,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30264,
    "c": 0.15218,
    "h": 283.3
  },
  "luminance": 0.02322
}

Semantic roles & 50–950 ramp

primary
#2B1476
secondary
#91AC3A
accent
#EE3AC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2B1476

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

Preview Lab → · Contrast checker → · Palette generator →

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