#2E1560#2E1560

#2E1560 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.123 H 291.8°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#2E1560
RGBrgb(46, 21, 96)
HSLhsl(260, 64%, 23%)
HSVhsv(260, 78%, 38%)
CMYKcmyk(52.1%, 78.1%, 0%, 62.4%)
CIE-LABlab(15.28, 31.59, -39.93)
CIE-LCHlch(15.28, 50.92, 308.35°)
OKLaboklab(28.38% 0.0458 -0.1146)
OKLCHoklch(28.38% 0.123 291.8)
XYZxyz(3.5056, 1.9616, 11.2580)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1560 #476015
analogous
#152160 #2E1560 #531560
triadic
#2E1560 #602E15 #15602E
tetradic
#2E1560 #601521 #476015 #156053
square
#2E1560 #601521 #476015 #156053
split-complementary
#2E1560 #605315 #216015
monochromatic
#0C0519 #160A2E #2E1560 #462092 #5E2BC4

Accessibility & contrast

On white

15.08
#2E1560 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1560
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1560#FFFFFF#000000##FFFFFF
##2E15601.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#1E2939
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1560;
/* rgb */ color: rgb(46, 21, 96);
/* oklch */ color: oklch(28.4% 0.123 291.8);
Tailwind
colors: {
  custom: {
    50: '#6d558e',
    500: '#2e1560',
    950: '#000000',
  },
}
SCSS
$custom: #2e1560;
$custom-light: #6d558e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1560",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 96
  },
  "hsl": {
    "h": 260,
    "s": 64.103,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28378,
    "c": 0.1234,
    "h": 291.8
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#2E1560
secondary
#78973A
accent
#E741B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1560

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

Preview Lab → · Contrast checker → · Palette generator →

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