#2E1256#2E1256

#2E1256 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.114 H 296.7°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2E1256
RGBrgb(46, 18, 86)
HSLhsl(265, 65%, 20%)
HSVhsv(265, 79%, 34%)
CMYKcmyk(46.5%, 79.1%, 0%, 66.3%)
CIE-LABlab(13.74, 30.21, -35.74)
CIE-LCHlch(13.74, 46.80, 310.21°)
OKLaboklab(26.99% 0.0514 -0.1023)
OKLCHoklch(26.99% 0.114 296.7)
XYZxyz(3.0223, 1.6853, 8.9684)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1256 #3A5612
analogous
#121856 #2E1256 #501256
triadic
#2E1256 #562E12 #12562E
tetradic
#2E1256 #561218 #3A5612 #125650
square
#2E1256 #561218 #3A5612 #125650
split-complementary
#2E1256 #565012 #185612
monochromatic
#0E0519 #130723 #2E1256 #491D89 #6427BB

Accessibility & contrast

On white

15.71
#2E1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E1256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1256
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1256#FFFFFF#000000##FFFFFF
##2E12561.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#232433
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1256;
/* rgb */ color: rgb(46, 18, 86);
/* oklch */ color: oklch(27.0% 0.114 296.7);
Tailwind
colors: {
  custom: {
    50: '#6b5386',
    500: '#2e1256',
    950: '#000000',
  },
}
SCSS
$custom: #2e1256;
$custom-light: #6b5386;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1256",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 264.706,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26989,
    "c": 0.11446,
    "h": 296.7
  },
  "luminance": 0.01685
}

Semantic roles & 50–950 ramp

primary
#2E1256
secondary
#6A8F35
accent
#E83FA3
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1256

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

Preview Lab → · Contrast checker → · Palette generator →

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