#2E1B76#2E1B76

#2E1B76 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.145 H 283.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2E1B76
RGBrgb(46, 27, 118)
HSLhsl(253, 63%, 28%)
HSVhsv(253, 77%, 46%)
CMYKcmyk(61%, 77.1%, 0%, 53.7%)
CIE-LABlab(18.68, 35.17, -48.74)
CIE-LCHlch(18.68, 60.10, 305.82°)
OKLaboklab(31.45% 0.0348 -0.1404)
OKLCHoklch(31.45% 0.145 283.9)
XYZxyz(4.7877, 2.6724, 17.3996)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B76 #63761B
analogous
#1B3576 #2E1B76 #5B1B76
triadic
#2E1B76 #762E1B #1B762E
tetradic
#2E1B76 #761B35 #63761B #1B765B
square
#2E1B76 #761B35 #63761B #1B765B
split-complementary
#2E1B76 #765B1B #35761B
monochromatic
#0A0619 #1B1044 #2E1B76 #4126A8 #593AD2

Accessibility & contrast

On white

13.68
#2E1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E1B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B76
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B76#FFFFFF#000000##FFFFFF
##2E1B761.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#043447
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1b76;
/* rgb */ color: rgb(46, 27, 118);
/* oklch */ color: oklch(31.5% 0.145 283.9);
Tailwind
colors: {
  custom: {
    50: '#705a9e',
    500: '#2e1b76',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b76;
$custom-light: #705a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b76",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 252.527,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31451,
    "c": 0.14465,
    "h": 283.9
  },
  "luminance": 0.02673
}

Semantic roles & 50–950 ramp

primary
#2E1B76
secondary
#95AA42
accent
#E642C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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