#2E1D7F#2E1D7F

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

Color values

HEX#2E1D7F
RGBrgb(46, 29, 127)
HSLhsl(250, 63%, 31%)
HSVhsv(250, 77%, 50%)
CMYKcmyk(63.8%, 77.2%, 0%, 50.2%)
CIE-LABlab(20.01, 36.95, -52.30)
CIE-LCHlch(20.01, 64.03, 305.24°)
OKLaboklab(32.67% 0.031 -0.1508)
OKLCHoklch(32.67% 0.154 281.6)
XYZxyz(5.3956, 2.9915, 20.3676)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D7F #6E7F1D
analogous
#1D3D7F #2E1D7F #5F1D7F
triadic
#2E1D7F #7F2E1D #1D7F2E
tetradic
#2E1D7F #7F1D3D #6E7F1D #1D7F5F
square
#2E1D7F #7F1D3D #6E7F1D #1D7F5F
split-complementary
#2E1D7F #7F5F1D #3D7F1D
monochromatic
#0A061B #1C124D #2E1D7F #4028B1 #5C42D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E1D7F#FFFFFF#000000##FFFFFF
##2E1D7F1.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)
#003482
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1d7f;
/* rgb */ color: rgb(46, 29, 127);
/* oklch */ color: oklch(32.7% 0.154 281.6);
Tailwind
colors: {
  custom: {
    50: '#725ba5',
    500: '#2e1d7f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d7f;
$custom-light: #725ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d7f",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 250.408,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3267,
    "c": 0.15397,
    "h": 281.6
  },
  "luminance": 0.02992
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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