#2E1B85#2E1B85

#2E1B85 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.164 H 280.8°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#2E1B85
RGBrgb(46, 27, 133)
HSLhsl(251, 66%, 31%)
HSVhsv(251, 80%, 52%)
CMYKcmyk(65.4%, 79.7%, 0%, 47.8%)
CIE-LABlab(20.27, 39.94, -55.65)
CIE-LCHlch(20.27, 68.50, 305.67°)
OKLaboklab(33.05% 0.0307 -0.1606)
OKLCHoklch(33.05% 0.164 280.8)
XYZxyz(5.7509, 3.0577, 22.4729)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B85 #72851B
analogous
#1B3D85 #2E1B85 #631B85
triadic
#2E1B85 #852E1B #1B852E
tetradic
#2E1B85 #851B3D #72851B #1B8563
square
#2E1B85 #851B3D #72851B #1B8563
split-complementary
#2E1B85 #85631B #3D851B
monochromatic
#0B061F #1C1152 #2E1B85 #4025B8 #5D42D9

Accessibility & contrast

On white

13.03
#2E1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E1B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B85
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B85#FFFFFF#000000##FFFFFF
##2E1B851.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1b85;
/* rgb */ color: rgb(46, 27, 133);
/* oklch */ color: oklch(33.0% 0.164 280.8);
Tailwind
colors: {
  custom: {
    50: '#735baa',
    500: '#2e1b85',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b85;
$custom-light: #735baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b85",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 250.755,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33047,
    "c": 0.16351,
    "h": 280.8
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#2E1B85
secondary
#A3B844
accent
#E93FCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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