#2E1B7F#2E1B7F

#2E1B7F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.156 H 282.0°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#2E1B7F
RGBrgb(46, 27, 127)
HSLhsl(251, 65%, 30%)
HSVhsv(251, 79%, 50%)
CMYKcmyk(63.8%, 78.7%, 0%, 50.2%)
CIE-LABlab(19.62, 38.04, -52.93)
CIE-LCHlch(19.62, 65.18, 305.71°)
OKLaboklab(32.4% 0.0324 -0.1527)
OKLCHoklch(32.4% 0.156 282)
XYZxyz(5.3482, 2.8966, 20.3518)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B7F #6C7F1B
analogous
#1B3A7F #2E1B7F #601B7F
triadic
#2E1B7F #7F2E1B #1B7F2E
tetradic
#2E1B7F #7F1B3A #6C7F1B #1B7F60
square
#2E1B7F #7F1B3A #6C7F1B #1B7F60
split-complementary
#2E1B7F #7F601B #3A7F1B
monochromatic
#09061A #1C104D #2E1B7F #4026B1 #5B3ED6

Accessibility & contrast

On white

13.30
#2E1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E1B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B7F
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B7F#FFFFFF#000000##FFFFFF
##2E1B7F1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1b7f;
/* rgb */ color: rgb(46, 27, 127);
/* oklch */ color: oklch(32.4% 0.156 282.0);
Tailwind
colors: {
  custom: {
    50: '#725aa5',
    500: '#2e1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b7f;
$custom-light: #725aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b7f",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 251.4,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32399,
    "c": 0.15605,
    "h": 282
  },
  "luminance": 0.02897
}

Semantic roles & 50–950 ramp

primary
#2E1B7F
secondary
#9EB343
accent
#E840C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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