#2E1E71#2E1E71

#2E1E71 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.135 H 284.4°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#2E1E71
RGBrgb(46, 30, 113)
HSLhsl(252, 58%, 28%)
HSVhsv(252, 73%, 44%)
CMYKcmyk(59.3%, 73.5%, 0%, 55.7%)
CIE-LABlab(18.81, 31.80, -45.31)
CIE-LCHlch(18.81, 55.35, 305.06°)
OKLaboklab(31.39% 0.0334 -0.1304)
OKLCHoklch(31.39% 0.135 284.4)
XYZxyz(4.5707, 2.7014, 15.9001)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E71 #61711E
analogous
#1E3771 #2E1E71 #571E71
triadic
#2E1E71 #712E1E #1E712E
tetradic
#2E1E71 #711E37 #61711E #1E7157
square
#2E1E71 #711E37 #61711E #1E7157
split-complementary
#2E1E71 #71571E #37711E
monochromatic
#0A0618 #1A1141 #2E1E71 #422BA1 #593ECC

Accessibility & contrast

On white

13.63
#2E1E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E1E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E71
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E71#FFFFFF#000000##FFFFFF
##2E1E711.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#0C3445
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1e71;
/* rgb */ color: rgb(46, 30, 113);
/* oklch */ color: oklch(31.4% 0.135 284.4);
Tailwind
colors: {
  custom: {
    50: '#6f5b9b',
    500: '#2e1e71',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e71;
$custom-light: #6f5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e71",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 251.566,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31387,
    "c": 0.13461,
    "h": 284.4
  },
  "luminance": 0.02702
}

Semantic roles & 50–950 ramp

primary
#2E1E71
secondary
#93A546
accent
#E147C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1E71

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

Preview Lab → · Contrast checker → · Palette generator →

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