#2E1D71#2E1D71

#2E1D71 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.2% C 0.136 H 284.6°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2E1D71
RGBrgb(46, 29, 113)
HSLhsl(252, 59%, 28%)
HSVhsv(252, 74%, 44%)
CMYKcmyk(59.3%, 74.3%, 0%, 55.7%)
CIE-LABlab(18.59, 32.40, -45.66)
CIE-LCHlch(18.59, 55.99, 305.35°)
OKLaboklab(31.23% 0.0343 -0.1314)
OKLCHoklch(31.23% 0.136 284.6)
XYZxyz(4.5458, 2.6516, 15.8918)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D71 #60711D
analogous
#1D3671 #2E1D71 #581D71
triadic
#2E1D71 #712E1D #1D712E
tetradic
#2E1D71 #711D36 #60711D #1D7158
square
#2E1D71 #711D36 #60711D #1D7158
split-complementary
#2E1D71 #71581D #36711D
monochromatic
#0A0618 #1A1140 #2E1D71 #4229A2 #593CCD

Accessibility & contrast

On white

13.72
#2E1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1D71
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D71#FFFFFF#000000##FFFFFF
##2E1D711.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1d71;
/* rgb */ color: rgb(46, 29, 113);
/* oklch */ color: oklch(31.2% 0.136 284.6);
Tailwind
colors: {
  custom: {
    50: '#6f5b9b',
    500: '#2e1d71',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d71;
$custom-light: #6f5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d71",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 252.143,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31234,
    "c": 0.13583,
    "h": 284.6
  },
  "luminance": 0.02652
}

Semantic roles & 50–950 ramp

primary
#2E1D71
secondary
#92A544
accent
#E245C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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