#2E1771#2E1771

#2E1771 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.143 H 286.0°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#2E1771
RGBrgb(46, 23, 113)
HSLhsl(255, 66%, 27%)
HSVhsv(255, 80%, 44%)
CMYKcmyk(59.3%, 79.6%, 0%, 55.7%)
CIE-LABlab(17.39, 35.77, -47.63)
CIE-LCHlch(17.39, 59.57, 306.91°)
OKLaboklab(30.39% 0.0393 -0.1371)
OKLCHoklch(30.39% 0.143 286)
XYZxyz(4.4128, 2.3856, 15.8475)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1771 #5A7117
analogous
#172D71 #2E1771 #5B1771
triadic
#2E1771 #712E17 #17712E
tetradic
#2E1771 #71172D #5A7117 #17715B
square
#2E1771 #71172D #5A7117 #17715B
split-complementary
#2E1771 #715B17 #2D7117
monochromatic
#0A0519 #190D3E #2E1771 #4321A4 #592ED4

Accessibility & contrast

On white

14.22
#2E1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1771
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1771#FFFFFF#000000##FFFFFF
##2E17711.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#0D3143
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1771;
/* rgb */ color: rgb(46, 23, 113);
/* oklch */ color: oklch(30.4% 0.143 286.0);
Tailwind
colors: {
  custom: {
    50: '#70579b',
    500: '#2e1771',
    950: '#000000',
  },
}
SCSS
$custom: #2e1771;
$custom-light: #70579b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1771",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 255.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30388,
    "c": 0.14266,
    "h": 286
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#2E1771
secondary
#8CA73D
accent
#E93FBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1771

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

Preview Lab → · Contrast checker → · Palette generator →

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