#2E1D6E#2E1D6E

#2E1D6E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.132 H 285.4°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2E1D6E
RGBrgb(46, 29, 110)
HSLhsl(253, 58%, 27%)
HSVhsv(253, 74%, 43%)
CMYKcmyk(58.2%, 73.6%, 0%, 56.9%)
CIE-LABlab(18.30, 31.41, -44.20)
CIE-LCHlch(18.30, 54.22, 305.40°)
OKLaboklab(30.94% 0.0349 -0.1271)
OKLCHoklch(30.94% 0.132 285.4)
XYZxyz(4.3797, 2.5851, 15.0170)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D6E #5D6E1D
analogous
#1D346E #2E1D6E #571D6E
triadic
#2E1D6E #6E2E1D #1D6E2E
tetradic
#2E1D6E #6E1D34 #5D6E1D #1D6E57
square
#2E1D6E #6E1D34 #5D6E1D #1D6E57
split-complementary
#2E1D6E #6E571D #346E1D
monochromatic
#0A0618 #1A103E #2E1D6E #422A9E #593ACB

Accessibility & contrast

On white

13.84
#2E1D6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E1D6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D6E
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D6E#FFFFFF#000000##FFFFFF
##2E1D6E1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#113243
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1d6e;
/* rgb */ color: rgb(46, 29, 110);
/* oklch */ color: oklch(30.9% 0.132 285.4);
Tailwind
colors: {
  custom: {
    50: '#6f5b98',
    500: '#2e1d6e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d6e;
$custom-light: #6f5b98;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d6e",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 110
  },
  "hsl": {
    "h": 252.593,
    "s": 58.273,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30936,
    "c": 0.13184,
    "h": 285.4
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#2E1D6E
secondary
#8FA244
accent
#E146C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1D6E

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

Preview Lab → · Contrast checker → · Palette generator →

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