#2E1B6D#2E1B6D

#2E1B6D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.5% C 0.133 H 286.1°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2E1B6D
RGBrgb(46, 27, 109)
HSLhsl(254, 60%, 27%)
HSVhsv(254, 75%, 43%)
CMYKcmyk(57.8%, 75.2%, 0%, 57.3%)
CIE-LABlab(17.78, 32.27, -44.40)
CIE-LCHlch(17.78, 54.89, 306.01°)
OKLaboklab(30.53% 0.037 -0.1277)
OKLCHoklch(30.53% 0.133 286.1)
XYZxyz(4.2781, 2.4686, 14.7161)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B6D #5A6D1B
analogous
#1B316D #2E1B6D #571B6D
triadic
#2E1B6D #6D2E1B #1B6D2E
tetradic
#2E1B6D #6D1B31 #5A6D1B #1B6D57
square
#2E1B6D #6D1B31 #5A6D1B #1B6D57
split-complementary
#2E1B6D #6D571B #316D1B
monochromatic
#0A0619 #190F3C #2E1B6D #43279E #5935CD

Accessibility & contrast

On white

14.06
#2E1B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E1B6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B6D
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B6D#FFFFFF#000000##FFFFFF
##2E1B6D1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#123142
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1b6d;
/* rgb */ color: rgb(46, 27, 109);
/* oklch */ color: oklch(30.5% 0.133 286.1);
Tailwind
colors: {
  custom: {
    50: '#6f5998',
    500: '#2e1b6d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b6d;
$custom-light: #6f5998;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b6d",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 253.902,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30534,
    "c": 0.13298,
    "h": 286.1
  },
  "luminance": 0.02469
}

Semantic roles & 50–950 ramp

primary
#2E1B6D
secondary
#8CA242
accent
#E344BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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