#2E1E6B#2E1E6B

#2E1E6B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.8% C 0.127 H 285.8°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#2E1E6B
RGBrgb(46, 30, 107)
HSLhsl(252, 56%, 27%)
HSVhsv(252, 72%, 42%)
CMYKcmyk(57%, 72%, 0%, 58%)
CIE-LABlab(18.24, 29.82, -42.35)
CIE-LCHlch(18.24, 51.79, 305.15°)
OKLaboklab(30.8% 0.0345 -0.1217)
OKLCHoklch(30.8% 0.127 285.8)
XYZxyz(4.2440, 2.5707, 14.1796)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E6B #5B6B1E
analogous
#1E356B #2E1E6B #551E6B
triadic
#2E1E6B #6B2E1E #1E6B2E
tetradic
#2E1E6B #6B1E35 #5B6B1E #1E6B55
square
#2E1E6B #6B1E35 #5B6B1E #1E6B55
split-complementary
#2E1E6B #6B551E #356B1E
monochromatic
#0A0718 #19113B #2E1E6B #432B9B #593BC8

Accessibility & contrast

On white

13.87
#2E1E6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E1E6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E6B
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E6B#FFFFFF#000000##FFFFFF
##2E1E6B1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#143242
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1e6b;
/* rgb */ color: rgb(46, 30, 107);
/* oklch */ color: oklch(30.8% 0.127 285.8);
Tailwind
colors: {
  custom: {
    50: '#6e5b96',
    500: '#2e1e6b',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e6b;
$custom-light: #6e5b96;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e6b",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 107
  },
  "hsl": {
    "h": 252.468,
    "s": 56.204,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30803,
    "c": 0.12651,
    "h": 285.8
  },
  "luminance": 0.02571
}

Semantic roles & 50–950 ramp

primary
#2E1E6B
secondary
#8D9F45
accent
#DF48C0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2E1E6B

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

Preview Lab → · Contrast checker → · Palette generator →

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