#2E1B81#2E1B81

#2E1B81 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.159 H 281.6°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#2E1B81
RGBrgb(46, 27, 129)
HSLhsl(251, 65%, 31%)
HSVhsv(251, 79%, 51%)
CMYKcmyk(64.3%, 79.1%, 0%, 49.4%)
CIE-LABlab(19.84, 38.68, -53.84)
CIE-LCHlch(19.84, 66.30, 305.69°)
OKLaboklab(32.61% 0.0318 -0.1553)
OKLCHoklch(32.61% 0.159 281.6)
XYZxyz(5.4799, 2.9493, 21.0451)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B81 #6E811B
analogous
#1B3B81 #2E1B81 #611B81
triadic
#2E1B81 #812E1B #1B812E
tetradic
#2E1B81 #811B3B #6E811B #1B8161
square
#2E1B81 #811B3B #6E811B #1B8161
split-complementary
#2E1B81 #81611B #3B811B
monochromatic
#0A061C #1C104E #2E1B81 #4026B4 #5C3FD7

Accessibility & contrast

On white

13.21
#2E1B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E1B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B81
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B81#FFFFFF#000000##FFFFFF
##2E1B811.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1b81;
/* rgb */ color: rgb(46, 27, 129);
/* oklch */ color: oklch(32.6% 0.159 281.6);
Tailwind
colors: {
  custom: {
    50: '#735aa7',
    500: '#2e1b81',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b81;
$custom-light: #735aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b81",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 251.176,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32614,
    "c": 0.15855,
    "h": 281.6
  },
  "luminance": 0.0295
}

Semantic roles & 50–950 ramp

primary
#2E1B81
secondary
#9FB543
accent
#E83FC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1B81

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

Preview Lab → · Contrast checker → · Palette generator →

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