#2E1860#2E1860

#2E1860 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.120 H 291.0°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#2E1860
RGBrgb(46, 24, 96)
HSLhsl(258, 60%, 24%)
HSVhsv(258, 75%, 38%)
CMYKcmyk(52.1%, 75%, 0%, 62.4%)
CIE-LABlab(15.89, 29.88, -38.94)
CIE-LCHlch(15.89, 49.08, 307.51°)
OKLaboklab(28.81% 0.0428 -0.1117)
OKLCHoklch(28.81% 0.12 291)
XYZxyz(3.5641, 2.0785, 11.2775)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1860 #4A6018
analogous
#182660 #2E1860 #521860
triadic
#2E1860 #602E18 #18602E
tetradic
#2E1860 #601826 #4A6018 #186052
square
#2E1860 #601826 #4A6018 #186052
split-complementary
#2E1860 #605218 #266018
monochromatic
#0C0618 #170C2F #2E1860 #452491 #5D30C2

Accessibility & contrast

On white

14.83
#2E1860 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E1860 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1860
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1860#FFFFFF#000000##FFFFFF
##2E18601.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#1E2A3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1860;
/* rgb */ color: rgb(46, 24, 96);
/* oklch */ color: oklch(28.8% 0.120 291.0);
Tailwind
colors: {
  custom: {
    50: '#6c578e',
    500: '#2e1860',
    950: '#000000',
  },
}
SCSS
$custom: #2e1860;
$custom-light: #6c578e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1860",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 96
  },
  "hsl": {
    "h": 258.333,
    "s": 60,
    "l": 23.529
  },
  "oklch": {
    "l": 0.2881,
    "c": 0.11959,
    "h": 291
  },
  "luminance": 0.02079
}

Semantic roles & 50–950 ramp

primary
#2E1860
secondary
#7B963D
accent
#E345B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1860

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

Preview Lab → · Contrast checker → · Palette generator →

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