#2B1381#2B1381

#2B1381 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.166 H 281.0°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#2B1381
RGBrgb(43, 19, 129)
HSLhsl(253, 74%, 29%)
HSVhsv(253, 85%, 51%)
CMYKcmyk(66.7%, 85.3%, 0%, 49.4%)
CIE-LABlab(18.21, 42.26, -56.55)
CIE-LCHlch(18.21, 70.60, 306.77°)
OKLaboklab(31.41% 0.0316 -0.1632)
OKLCHoklch(31.41% 0.166 281)
XYZxyz(5.1903, 2.5639, 20.9860)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1381 #698113
analogous
#133281 #2B1381 #621381
triadic
#2B1381 #812B13 #13812B
tetradic
#2B1381 #811332 #698113 #138162
square
#2B1381 #811332 #698113 #138162
split-complementary
#2B1381 #816213 #328113
monochromatic
#09041B #190B4C #2B1381 #3D1BB6 #552EE0

Accessibility & contrast

On white

13.88
#2B1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2B1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1381
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1381#FFFFFF#000000##FFFFFF
##2B13811.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1381;
/* rgb */ color: rgb(43, 19, 129);
/* oklch */ color: oklch(31.4% 0.166 281.0);
Tailwind
colors: {
  custom: {
    50: '#7256a7',
    500: '#2b1381',
    950: '#000000',
  },
}
SCSS
$custom: #2b1381;
$custom-light: #7256a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1381",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 253.091,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31409,
    "c": 0.16625,
    "h": 281
  },
  "luminance": 0.02564
}

Semantic roles & 50–950 ramp

primary
#2B1381
secondary
#9BB63A
accent
#F137C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1381

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

Preview Lab → · Contrast checker → · Palette generator →

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