#2B1376#2B1376

#2B1376 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.153 H 283.4°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#2B1376
RGBrgb(43, 19, 118)
HSLhsl(255, 72%, 27%)
HSVhsv(255, 84%, 46%)
CMYKcmyk(63.6%, 83.9%, 0%, 53.7%)
CIE-LABlab(16.93, 38.93, -51.64)
CIE-LCHlch(16.93, 64.67, 307.01°)
OKLaboklab(30.15% 0.0355 -0.1489)
OKLCHoklch(30.15% 0.153 283.4)
XYZxyz(4.4981, 2.2870, 17.3404)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1376 #5E7613
analogous
#132D76 #2B1376 #5D1376
triadic
#2B1376 #762B13 #13762B
tetradic
#2B1376 #76132D #5E7613 #13765D
square
#2B1376 #76132D #5E7613 #13765D
split-complementary
#2B1376 #765D13 #2D7613
monochromatic
#0A041A #180B41 #2B1376 #3E1BAB #5327DC

Accessibility & contrast

On white

14.41
#2B1376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1376
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1376#FFFFFF#000000##FFFFFF
##2B13761.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1376;
/* rgb */ color: rgb(43, 19, 118);
/* oklch */ color: oklch(30.1% 0.153 283.4);
Tailwind
colors: {
  custom: {
    50: '#70559f',
    500: '#2b1376',
    950: '#000000',
  },
}
SCSS
$custom: #2b1376;
$custom-light: #70559f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1376",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 118
  },
  "hsl": {
    "h": 254.545,
    "s": 72.263,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3015,
    "c": 0.15307,
    "h": 283.4
  },
  "luminance": 0.02287
}

Semantic roles & 50–950 ramp

primary
#2B1376
secondary
#90AC39
accent
#EF39C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2B1376

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

Preview Lab → · Contrast checker → · Palette generator →

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