#2E1D6F#2E1D6F

#2E1D6F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.133 H 285.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2E1D6F
RGBrgb(46, 29, 111)
HSLhsl(252, 59%, 27%)
HSVhsv(252, 74%, 44%)
CMYKcmyk(58.6%, 73.9%, 0%, 56.5%)
CIE-LABlab(18.40, 31.74, -44.69)
CIE-LCHlch(18.40, 54.81, 305.39°)
OKLaboklab(31.04% 0.0347 -0.1286)
OKLCHoklch(31.04% 0.133 285.1)
XYZxyz(4.4345, 2.6070, 15.3054)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D6F #5E6F1D
analogous
#1D356F #2E1D6F #571D6F
triadic
#2E1D6F #6F2E1D #1D6F2E
tetradic
#2E1D6F #6F1D35 #5E6F1D #1D6F57
square
#2E1D6F #6F1D35 #5E6F1D #1D6F57
split-complementary
#2E1D6F #6F571D #356F1D
monochromatic
#0A0618 #1A103E #2E1D6F #422AA0 #593BCC

Accessibility & contrast

On white

13.80
#2E1D6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1D6F
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D6F#FFFFFF#000000##FFFFFF
##2E1D6F1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#0F3343
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1d6f;
/* rgb */ color: rgb(46, 29, 111);
/* oklch */ color: oklch(31.0% 0.133 285.1);
Tailwind
colors: {
  custom: {
    50: '#6f5b99',
    500: '#2e1d6f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d6f;
$custom-light: #6f5b99;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d6f",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 111
  },
  "hsl": {
    "h": 252.439,
    "s": 58.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31035,
    "c": 0.13317,
    "h": 285.1
  },
  "luminance": 0.02607
}

Semantic roles & 50–950 ramp

primary
#2E1D6F
secondary
#90A344
accent
#E246C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1D6F

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

Preview Lab → · Contrast checker → · Palette generator →

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