#2E1660#2E1660

#2E1660 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.122 H 291.5°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#2E1660
RGBrgb(46, 22, 96)
HSLhsl(259, 63%, 23%)
HSVhsv(259, 77%, 38%)
CMYKcmyk(52.1%, 77.1%, 0%, 62.4%)
CIE-LABlab(15.48, 31.03, -39.61)
CIE-LCHlch(15.48, 50.32, 308.08°)
OKLaboklab(28.52% 0.0448 -0.1136)
OKLCHoklch(28.52% 0.122 291.5)
XYZxyz(3.5243, 1.9991, 11.2642)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1660 #486016
analogous
#162360 #2E1660 #531660
triadic
#2E1660 #602E16 #16602E
tetradic
#2E1660 #601623 #486016 #166053
square
#2E1660 #601623 #486016 #166053
split-complementary
#2E1660 #605316 #236016
monochromatic
#0C0619 #160B2E #2E1660 #462192 #5E2DC4

Accessibility & contrast

On white

15.00
#2E1660 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2E1660 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1660
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1660#FFFFFF#000000##FFFFFF
##2E16601.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1660;
/* rgb */ color: rgb(46, 22, 96);
/* oklch */ color: oklch(28.5% 0.122 291.5);
Tailwind
colors: {
  custom: {
    50: '#6d568e',
    500: '#2e1660',
    950: '#000000',
  },
}
SCSS
$custom: #2e1660;
$custom-light: #6d568e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1660",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 96
  },
  "hsl": {
    "h": 259.459,
    "s": 62.712,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28518,
    "c": 0.12217,
    "h": 291.5
  },
  "luminance": 0.01999
}

Semantic roles & 50–950 ramp

primary
#2E1660
secondary
#79973B
accent
#E642B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1660

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

Preview Lab → · Contrast checker → · Palette generator →

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