#2E1461#2E1461

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

Color values

HEX#2E1461
RGBrgb(46, 20, 97)
HSLhsl(260, 66%, 23%)
HSVhsv(260, 79%, 38%)
CMYKcmyk(52.6%, 79.4%, 0%, 62%)
CIE-LABlab(15.19, 32.44, -40.75)
CIE-LCHlch(15.19, 52.08, 308.52°)
OKLaboklab(28.34% 0.0465 -0.117)
OKLCHoklch(28.34% 0.126 291.7)
XYZxyz(3.5339, 1.9441, 11.4960)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1461 #476114
analogous
#142061 #2E1461 #541461
triadic
#2E1461 #612E14 #14612E
tetradic
#2E1461 #611420 #476114 #146154
square
#2E1461 #611420 #476114 #146154
split-complementary
#2E1461 #615414 #206114
monochromatic
#0C0519 #160A2E #2E1461 #461E94 #5E29C6

Accessibility & contrast

On white

15.12
#2E1461 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E1461 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1461
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1461#FFFFFF#000000##FFFFFF
##2E14611.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1461;
/* rgb */ color: rgb(46, 20, 97);
/* oklch */ color: oklch(28.3% 0.126 291.7);
Tailwind
colors: {
  custom: {
    50: '#6d548f',
    500: '#2e1461',
    950: '#000000',
  },
}
SCSS
$custom: #2e1461;
$custom-light: #6d548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1461",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 97
  },
  "hsl": {
    "h": 260.26,
    "s": 65.812,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28342,
    "c": 0.12587,
    "h": 291.7
  },
  "luminance": 0.01944
}

Semantic roles & 50–950 ramp

primary
#2E1461
secondary
#789838
accent
#E93FAF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1461

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

Preview Lab → · Contrast checker → · Palette generator →

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