#2E1B80#2E1B80

#2E1B80 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.157 H 281.8°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#2E1B80
RGBrgb(46, 27, 128)
HSLhsl(251, 65%, 30%)
HSVhsv(251, 79%, 50%)
CMYKcmyk(64.1%, 78.9%, 0%, 49.8%)
CIE-LABlab(19.73, 38.36, -53.39)
CIE-LCHlch(19.73, 65.74, 305.70°)
OKLaboklab(32.51% 0.0321 -0.154)
OKLCHoklch(32.51% 0.157 281.8)
XYZxyz(5.4137, 2.9228, 20.6968)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B80 #6D801B
analogous
#1B3A80 #2E1B80 #601B80
triadic
#2E1B80 #802E1B #1B802E
tetradic
#2E1B80 #801B3A #6D801B #1B8060
square
#2E1B80 #801B3A #6D801B #1B8060
split-complementary
#2E1B80 #80601B #3A801B
monochromatic
#0A061B #1C104D #2E1B80 #4026B3 #5B3FD6

Accessibility & contrast

On white

13.25
#2E1B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E1B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B80
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B80#FFFFFF#000000##FFFFFF
##2E1B801.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1b80;
/* rgb */ color: rgb(46, 27, 128);
/* oklch */ color: oklch(32.5% 0.157 281.8);
Tailwind
colors: {
  custom: {
    50: '#725aa6',
    500: '#2e1b80',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b80;
$custom-light: #725aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b80",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 251.287,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32506,
    "c": 0.15731,
    "h": 281.8
  },
  "luminance": 0.02923
}

Semantic roles & 50–950 ramp

primary
#2E1B80
secondary
#9FB443
accent
#E840C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1B80

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

Preview Lab → · Contrast checker → · Palette generator →

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