#2E1B82#2E1B82

#2E1B82 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.160 H 281.4°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#2E1B82
RGBrgb(46, 27, 130)
HSLhsl(251, 66%, 31%)
HSVhsv(251, 79%, 51%)
CMYKcmyk(64.6%, 79.2%, 0%, 49%)
CIE-LABlab(19.95, 38.99, -54.30)
CIE-LCHlch(19.95, 66.85, 305.68°)
OKLaboklab(32.72% 0.0315 -0.1567)
OKLCHoklch(32.72% 0.16 281.4)
XYZxyz(5.5466, 2.9760, 21.3969)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B82 #6F821B
analogous
#1B3B82 #2E1B82 #611B82
triadic
#2E1B82 #822E1B #1B822E
tetradic
#2E1B82 #821B3B #6F821B #1B8261
square
#2E1B82 #821B3B #6F821B #1B8261
split-complementary
#2E1B82 #82611B #3B821B
monochromatic
#0A061D #1C104F #2E1B82 #4026B5 #5C40D7

Accessibility & contrast

On white

13.16
#2E1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B82
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B82#FFFFFF#000000##FFFFFF
##2E1B821.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1b82;
/* rgb */ color: rgb(46, 27, 130);
/* oklch */ color: oklch(32.7% 0.160 281.4);
Tailwind
colors: {
  custom: {
    50: '#735aa7',
    500: '#2e1b82',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b82;
$custom-light: #735aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b82",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 251.068,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32722,
    "c": 0.1598,
    "h": 281.4
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#2E1B82
secondary
#A0B643
accent
#E93FC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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