#2E1361#2E1361

#2E1361 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.127 H 291.9°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#2E1361
RGBrgb(46, 19, 97)
HSLhsl(261, 67%, 23%)
HSVhsv(261, 80%, 38%)
CMYKcmyk(52.6%, 80.4%, 0%, 62%)
CIE-LABlab(15.01, 32.97, -41.05)
CIE-LCHlch(15.01, 52.65, 308.76°)
OKLaboklab(28.21% 0.0474 -0.1179)
OKLCHoklch(28.21% 0.127 291.9)
XYZxyz(3.5166, 1.9095, 11.4902)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1361 #466113
analogous
#131F61 #2E1361 #551361
triadic
#2E1361 #612E13 #13612E
tetradic
#2E1361 #61131F #466113 #136155
square
#2E1361 #61131F #466113 #136155
split-complementary
#2E1361 #615513 #1F6113
monochromatic
#0C051A #16092E #2E1361 #461D94 #5F27C7

Accessibility & contrast

On white

15.20
#2E1361 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1361
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1361#FFFFFF#000000##FFFFFF
##2E13611.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#1D2839
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1361;
/* rgb */ color: rgb(46, 19, 97);
/* oklch */ color: oklch(28.2% 0.127 291.9);
Tailwind
colors: {
  custom: {
    50: '#6d548f',
    500: '#2e1361',
    950: '#000000',
  },
}
SCSS
$custom: #2e1361;
$custom-light: #6d548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1361",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 97
  },
  "hsl": {
    "h": 260.769,
    "s": 67.241,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28211,
    "c": 0.12704,
    "h": 291.9
  },
  "luminance": 0.0191
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1361

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

Preview Lab → · Contrast checker → · Palette generator →

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