#2E1160#2E1160

#2E1160 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.128 H 292.7°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#2E1160
RGBrgb(46, 17, 96)
HSLhsl(262, 70%, 22%)
HSVhsv(262, 82%, 38%)
CMYKcmyk(52.1%, 82.3%, 0%, 62.4%)
CIE-LABlab(14.55, 33.69, -41.14)
CIE-LCHlch(14.55, 53.17, 309.31°)
OKLaboklab(27.86% 0.0495 -0.1181)
OKLCHoklch(27.86% 0.128 292.7)
XYZxyz(3.4379, 1.8261, 11.2354)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1160 #436011
analogous
#111C60 #2E1160 #561160
triadic
#2E1160 #602E11 #11602E
tetradic
#2E1160 #60111C #436011 #116056
square
#2E1160 #60111C #436011 #116056
split-complementary
#2E1160 #605611 #1C6011
monochromatic
#0C051A #15082C #2E1160 #471A94 #6023C8

Accessibility & contrast

On white

15.38
#2E1160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1160
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1160#FFFFFF#000000##FFFFFF
##2E11601.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00235F
Tritanopia (blue-blind)
#1E2738
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1160;
/* rgb */ color: rgb(46, 17, 96);
/* oklch */ color: oklch(27.9% 0.128 292.7);
Tailwind
colors: {
  custom: {
    50: '#6d538e',
    500: '#2e1160',
    950: '#000000',
  },
}
SCSS
$custom: #2e1160;
$custom-light: #6d538e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1160",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 262.025,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2786,
    "c": 0.12804,
    "h": 292.7
  },
  "luminance": 0.01826
}

Semantic roles & 50–950 ramp

primary
#2E1160
secondary
#749934
accent
#ED3BAC
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2E1160

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

Preview Lab → · Contrast checker → · Palette generator →

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