#2E1360#2E1360

#2E1360 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.126 H 292.3°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#2E1360
RGBrgb(46, 19, 96)
HSLhsl(261, 67%, 23%)
HSVhsv(261, 80%, 38%)
CMYKcmyk(52.1%, 80.2%, 0%, 62.4%)
CIE-LABlab(14.90, 32.67, -40.55)
CIE-LCHlch(14.90, 52.07, 308.85°)
OKLaboklab(28.11% 0.0477 -0.1164)
OKLCHoklch(28.11% 0.126 292.3)
XYZxyz(3.4703, 1.8910, 11.2462)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1360 #456013
analogous
#131E60 #2E1360 #551360
triadic
#2E1360 #602E13 #13602E
tetradic
#2E1360 #60131E #456013 #136055
square
#2E1360 #60131E #456013 #136055
split-complementary
#2E1360 #605513 #1E6013
monochromatic
#0C051A #16092D #2E1360 #461D93 #5F27C6

Accessibility & contrast

On white

15.24
#2E1360 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2E1360 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1360
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1360#FFFFFF#000000##FFFFFF
##2E13601.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00245F
Tritanopia (blue-blind)
#1E2838
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1360;
/* rgb */ color: rgb(46, 19, 96);
/* oklch */ color: oklch(28.1% 0.126 292.3);
Tailwind
colors: {
  custom: {
    50: '#6d548e',
    500: '#2e1360',
    950: '#000000',
  },
}
SCSS
$custom: #2e1360;
$custom-light: #6d548e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1360",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 96
  },
  "hsl": {
    "h": 261.039,
    "s": 66.957,
    "l": 22.549
  },
  "oklch": {
    "l": 0.2811,
    "c": 0.12579,
    "h": 292.3
  },
  "luminance": 0.01891
}

Semantic roles & 50–950 ramp

primary
#2E1360
secondary
#769837
accent
#EA3EAE
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1360

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

Preview Lab → · Contrast checker → · Palette generator →

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