#2B1372#2B1372

#2B1372 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.148 H 284.4°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#2B1372
RGBrgb(43, 19, 114)
HSLhsl(255, 71%, 26%)
HSVhsv(255, 83%, 45%)
CMYKcmyk(62.3%, 83.3%, 0%, 55.3%)
CIE-LABlab(16.47, 37.71, -49.80)
CIE-LCHlch(16.47, 62.47, 307.13°)
OKLaboklab(29.7% 0.0369 -0.1435)
OKLCHoklch(29.7% 0.148 284.4)
XYZxyz(4.2655, 2.1940, 16.1150)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1372 #5A7213
analogous
#132A72 #2B1372 #5A1372
triadic
#2B1372 #722B13 #13722B
tetradic
#2B1372 #72132A #5A7213 #13725A
square
#2B1372 #72132A #5A7213 #13725A
split-complementary
#2B1372 #725A13 #2A7213
monochromatic
#0A041A #170A3E #2B1372 #3F1CA6 #5325DB

Accessibility & contrast

On white

14.60
#2B1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2B1372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1372
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1372#FFFFFF#000000##FFFFFF
##2B13721.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1372;
/* rgb */ color: rgb(43, 19, 114);
/* oklch */ color: oklch(29.7% 0.148 284.4);
Tailwind
colors: {
  custom: {
    50: '#6f559c',
    500: '#2b1372',
    950: '#000000',
  },
}
SCSS
$custom: #2b1372;
$custom-light: #6f559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1372",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 255.158,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29702,
    "c": 0.1482,
    "h": 284.4
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

primary
#2B1372
secondary
#8CA938
accent
#EE3AC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1372

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

Preview Lab → · Contrast checker → · Palette generator →

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