#2E1D7E#2E1D7E

#2E1D7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.153 H 281.8°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2E1D7E
RGBrgb(46, 29, 126)
HSLhsl(251, 63%, 30%)
HSVhsv(251, 77%, 49%)
CMYKcmyk(63.5%, 77%, 0%, 50.6%)
CIE-LABlab(19.91, 36.63, -51.83)
CIE-LCHlch(19.91, 63.47, 305.25°)
OKLaboklab(32.57% 0.0312 -0.1495)
OKLCHoklch(32.57% 0.153 281.8)
XYZxyz(5.3308, 2.9655, 20.0261)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D7E #6D7E1D
analogous
#1D3D7E #2E1D7E #5E1D7E
triadic
#2E1D7E #7E2E1D #1D7E2E
tetradic
#2E1D7E #7E1D3D #6D7E1D #1D7E5E
square
#2E1D7E #7E1D3D #6D7E1D #1D7E5E
split-complementary
#2E1D7E #7E5E1D #3D7E1D
monochromatic
#0A061B #1C124C #2E1D7E #4028B0 #5B42D3

Accessibility & contrast

On white

13.18
#2E1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D7E
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D7E#FFFFFF#000000##FFFFFF
##2E1D7E1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1d7e;
/* rgb */ color: rgb(46, 29, 126);
/* oklch */ color: oklch(32.6% 0.153 281.8);
Tailwind
colors: {
  custom: {
    50: '#725ba4',
    500: '#2e1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d7e;
$custom-light: #725ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d7e",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 250.515,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32565,
    "c": 0.15271,
    "h": 281.8
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#2E1D7E
secondary
#9FB145
accent
#E642C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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