#2E1371#2E1371

#2E1371 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.147 H 286.7°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#2E1371
RGBrgb(46, 19, 113)
HSLhsl(257, 71%, 26%)
HSVhsv(257, 83%, 44%)
CMYKcmyk(59.3%, 83.2%, 0%, 55.7%)
CIE-LABlab(16.69, 37.79, -48.78)
CIE-LCHlch(16.69, 61.70, 307.76°)
OKLaboklab(29.9% 0.0422 -0.1405)
OKLCHoklch(29.9% 0.147 286.7)
XYZxyz(4.3393, 2.2386, 15.8230)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1371 #567113
analogous
#132771 #2E1371 #5D1371
triadic
#2E1371 #712E13 #13712E
tetradic
#2E1371 #711327 #567113 #13715D
square
#2E1371 #711327 #567113 #13715D
split-complementary
#2E1371 #715D13 #277113
monochromatic
#0B041A #190A3D #2E1371 #431CA5 #5925DA

Accessibility & contrast

On white

14.50
#2E1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1371
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1371#FFFFFF#000000##FFFFFF
##2E13711.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#0E2F42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1371;
/* rgb */ color: rgb(46, 19, 113);
/* oklch */ color: oklch(29.9% 0.147 286.7);
Tailwind
colors: {
  custom: {
    50: '#70559b',
    500: '#2e1371',
    950: '#000000',
  },
}
SCSS
$custom: #2e1371;
$custom-light: #70559b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1371",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 257.234,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29899,
    "c": 0.14668,
    "h": 286.7
  },
  "luminance": 0.02239
}

Semantic roles & 50–950 ramp

primary
#2E1371
secondary
#88A838
accent
#EE3ABA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1371

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

Preview Lab → · Contrast checker → · Palette generator →

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