#2E1460#2E1460

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

Color values

HEX#2E1460
RGBrgb(46, 20, 96)
HSLhsl(261, 66%, 23%)
HSVhsv(261, 79%, 38%)
CMYKcmyk(52.1%, 79.2%, 0%, 62.4%)
CIE-LABlab(15.09, 32.13, -40.25)
CIE-LCHlch(15.09, 51.50, 308.60°)
OKLaboklab(28.24% 0.0468 -0.1155)
OKLCHoklch(28.24% 0.125 292)
XYZxyz(3.4876, 1.9256, 11.2520)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1460 #466014
analogous
#142060 #2E1460 #541460
triadic
#2E1460 #602E14 #14602E
tetradic
#2E1460 #601420 #466014 #146054
square
#2E1460 #601420 #466014 #146054
split-complementary
#2E1460 #605414 #206014
monochromatic
#0C0519 #16092D #2E1460 #461F93 #5F29C5

Accessibility & contrast

On white

15.16
#2E1460 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1460
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1460#FFFFFF#000000##FFFFFF
##2E14601.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1460;
/* rgb */ color: rgb(46, 20, 96);
/* oklch */ color: oklch(28.2% 0.125 292.0);
Tailwind
colors: {
  custom: {
    50: '#6d548e',
    500: '#2e1460',
    950: '#000000',
  },
}
SCSS
$custom: #2e1460;
$custom-light: #6d548e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1460",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 96
  },
  "hsl": {
    "h": 260.526,
    "s": 65.517,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28242,
    "c": 0.12461,
    "h": 292
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#2E1460
secondary
#779838
accent
#E83FAF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1460

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

Preview Lab → · Contrast checker → · Palette generator →

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