#2E1B71#2E1B71

#2E1B71 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.138 H 285.1°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#2E1B71
RGBrgb(46, 27, 113)
HSLhsl(253, 61%, 27%)
HSVhsv(253, 76%, 44%)
CMYKcmyk(59.3%, 76.1%, 0%, 55.7%)
CIE-LABlab(18.17, 33.56, -46.35)
CIE-LCHlch(18.17, 57.22, 305.91°)
OKLaboklab(30.94% 0.036 -0.1334)
OKLCHoklch(30.94% 0.138 285.1)
XYZxyz(4.4984, 2.5567, 15.8760)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B71 #5E711B
analogous
#1B3371 #2E1B71 #591B71
triadic
#2E1B71 #712E1B #1B712E
tetradic
#2E1B71 #711B33 #5E711B #1B7159
square
#2E1B71 #711B33 #5E711B #1B7159
split-complementary
#2E1B71 #71591B #33711B
monochromatic
#0A0619 #1A0F40 #2E1B71 #4227A2 #5937CF

Accessibility & contrast

On white

13.89
#2E1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1B71
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B71#FFFFFF#000000##FFFFFF
##2E1B711.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#0D3244
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1b71;
/* rgb */ color: rgb(46, 27, 113);
/* oklch */ color: oklch(30.9% 0.138 285.1);
Tailwind
colors: {
  custom: {
    50: '#6f599b',
    500: '#2e1b71',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b71;
$custom-light: #6f599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b71",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 253.256,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30937,
    "c": 0.1382,
    "h": 285.1
  },
  "luminance": 0.02557
}

Semantic roles & 50–950 ramp

primary
#2E1B71
secondary
#90A642
accent
#E543C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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