#2E1367#2E1367

#2E1367 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.134 H 289.8°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#2E1367
RGBrgb(46, 19, 103)
HSLhsl(259, 69%, 24%)
HSVhsv(259, 82%, 40%)
CMYKcmyk(55.3%, 81.6%, 0%, 59.6%)
CIE-LABlab(15.62, 34.78, -44.01)
CIE-LCHlch(15.62, 56.09, 308.31°)
OKLaboklab(28.83% 0.0456 -0.1265)
OKLCHoklch(28.83% 0.134 289.8)
XYZxyz(3.8071, 2.0257, 13.0197)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1367 #4C6713
analogous
#132267 #2E1367 #581367
triadic
#2E1367 #672E13 #13672E
tetradic
#2E1367 #671322 #4C6713 #136758
square
#2E1367 #671322 #4C6713 #136758
split-complementary
#2E1367 #675813 #226713
monochromatic
#0C051A #170933 #2E1367 #451D9B #5C26CE

Accessibility & contrast

On white

14.94
#2E1367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2E1367 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1367
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1367#FFFFFF#000000##FFFFFF
##2E13671.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#192B3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1367;
/* rgb */ color: rgb(46, 19, 103);
/* oklch */ color: oklch(28.8% 0.134 289.8);
Tailwind
colors: {
  custom: {
    50: '#6e5493',
    500: '#2e1367',
    950: '#000000',
  },
}
SCSS
$custom: #2e1367;
$custom-light: #6e5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1367",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 103
  },
  "hsl": {
    "h": 259.286,
    "s": 68.852,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28831,
    "c": 0.13448,
    "h": 289.8
  },
  "luminance": 0.02026
}

Semantic roles & 50–950 ramp

primary
#2E1367
secondary
#7D9E37
accent
#EC3CB3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1367

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

Preview Lab → · Contrast checker → · Palette generator →

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