#2E1E7D#2E1E7D

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

Color values

HEX#2E1E7D
RGBrgb(46, 30, 125)
HSLhsl(250, 61%, 30%)
HSVhsv(250, 76%, 49%)
CMYKcmyk(63.2%, 76%, 0%, 51%)
CIE-LABlab(20.00, 35.74, -51.04)
CIE-LCHlch(20.00, 62.30, 305.00°)
OKLaboklab(32.6% 0.0307 -0.1472)
OKLCHoklch(32.6% 0.15 281.8)
XYZxyz(5.2915, 2.9897, 19.6963)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E7D #6D7D1E
analogous
#1E3E7D #2E1E7D #5D1E7D
triadic
#2E1E7D #7D2E1E #1E7D2E
tetradic
#2E1E7D #7D1E3E #6D7D1E #1E7D5D
square
#2E1E7D #7D1E3E #6D7D1E #1E7D5D
split-complementary
#2E1E7D #7D5D1E #3E7D1E
monochromatic
#0A061A #1C124C #2E1E7D #402AAE #5B43D2

Accessibility & contrast

On white

13.14
#2E1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E1E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E7D
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E7D#FFFFFF#000000##FFFFFF
##2E1E7D1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1e7d;
/* rgb */ color: rgb(46, 30, 125);
/* oklch */ color: oklch(32.6% 0.150 281.8);
Tailwind
colors: {
  custom: {
    50: '#715ca4',
    500: '#2e1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e7d;
$custom-light: #715ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e7d",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 250.105,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32602,
    "c": 0.15033,
    "h": 281.8
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#2E1E7D
secondary
#9FB046
accent
#E443C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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