#2B1576#2B1576

#2B1576 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.151 H 283.1°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2B1576
RGBrgb(43, 21, 118)
HSLhsl(254, 70%, 27%)
HSVhsv(254, 82%, 46%)
CMYKcmyk(63.6%, 82.2%, 0%, 53.7%)
CIE-LABlab(17.26, 37.96, -51.08)
CIE-LCHlch(17.26, 63.64, 306.61°)
OKLaboklab(30.38% 0.0343 -0.1473)
OKLCHoklch(30.38% 0.151 283.1)
XYZxyz(4.5334, 2.3576, 17.3522)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1576 #607615
analogous
#153076 #2B1576 #5B1576
triadic
#2B1576 #762B15 #15762B
tetradic
#2B1576 #761530 #607615 #15765B
square
#2B1576 #761530 #607615 #15765B
split-complementary
#2B1576 #765B15 #307615
monochromatic
#09051A #180C42 #2B1576 #3E1EAA #532CD9

Accessibility & contrast

On white

14.27
#2B1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2B1576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1576
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1576#FFFFFF#000000##FFFFFF
##2B15761.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.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: #2b1576;
/* rgb */ color: rgb(43, 21, 118);
/* oklch */ color: oklch(30.4% 0.151 283.1);
Tailwind
colors: {
  custom: {
    50: '#6f569f',
    500: '#2b1576',
    950: '#000000',
  },
}
SCSS
$custom: #2b1576;
$custom-light: #6f569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1576",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 253.608,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30383,
    "c": 0.15124,
    "h": 283.1
  },
  "luminance": 0.02358
}

Semantic roles & 50–950 ramp

primary
#2B1576
secondary
#92AC3B
accent
#ED3BC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2B1576

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

Preview Lab → · Contrast checker → · Palette generator →

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