#2B1371#2B1371

#2B1371 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.147 H 284.7°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2B1371
RGBrgb(43, 19, 113)
HSLhsl(255, 71%, 26%)
HSVhsv(255, 83%, 44%)
CMYKcmyk(61.9%, 83.2%, 0%, 55.7%)
CIE-LABlab(16.36, 37.40, -49.34)
CIE-LCHlch(16.36, 61.91, 307.17°)
OKLaboklab(29.59% 0.0372 -0.1422)
OKLCHoklch(29.59% 0.147 284.7)
XYZxyz(4.2089, 2.1713, 15.8169)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1371 #597113
analogous
#132A71 #2B1371 #5A1371
triadic
#2B1371 #712B13 #13712B
tetradic
#2B1371 #71132A #597113 #13715A
square
#2B1371 #71132A #597113 #13715A
split-complementary
#2B1371 #715A13 #2A7113
monochromatic
#0A041A #170A3D #2B1371 #3F1CA5 #5325DA

Accessibility & contrast

On white

14.64
#2B1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2B1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1371
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1371#FFFFFF#000000##FFFFFF
##2B13711.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#012F42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1371;
/* rgb */ color: rgb(43, 19, 113);
/* oklch */ color: oklch(29.6% 0.147 284.7);
Tailwind
colors: {
  custom: {
    50: '#6e559b',
    500: '#2b1371',
    950: '#000000',
  },
}
SCSS
$custom: #2b1371;
$custom-light: #6e559b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1371",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 255.319,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29591,
    "c": 0.14698,
    "h": 284.7
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#2B1371
secondary
#8BA838
accent
#EE3AC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1371

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

Preview Lab → · Contrast checker → · Palette generator →

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