#2E1456#2E1456

#2E1456 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.112 H 296.1°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#2E1456
RGBrgb(46, 20, 86)
HSLhsl(264, 62%, 21%)
HSVhsv(264, 77%, 34%)
CMYKcmyk(46.5%, 76.7%, 0%, 66.3%)
CIE-LABlab(14.13, 29.11, -35.10)
CIE-LCHlch(14.13, 45.60, 309.67°)
OKLaboklab(27.27% 0.0493 -0.1004)
OKLCHoklch(27.27% 0.112 296.1)
XYZxyz(3.0561, 1.7530, 8.9796)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1456 #3C5614
analogous
#141B56 #2E1456 #4F1456
triadic
#2E1456 #562E14 #14562E
tetradic
#2E1456 #56141B #3C5614 #14564F
square
#2E1456 #56141B #3C5614 #14564F
split-complementary
#2E1456 #564F14 #1B5614
monochromatic
#0D0619 #130824 #2E1456 #492088 #632BB9

Accessibility & contrast

On white

15.55
#2E1456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2E1456 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1456
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1456#FFFFFF#000000##FFFFFF
##2E14561.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#232533
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1456;
/* rgb */ color: rgb(46, 20, 86);
/* oklch */ color: oklch(27.3% 0.112 296.1);
Tailwind
colors: {
  custom: {
    50: '#6b5486',
    500: '#2e1456',
    950: '#000000',
  },
}
SCSS
$custom: #2e1456;
$custom-light: #6b5486;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1456",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 263.636,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27268,
    "c": 0.11183,
    "h": 296.1
  },
  "luminance": 0.01753
}

Semantic roles & 50–950 ramp

primary
#2E1456
secondary
#6C8E38
accent
#E542A5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1456

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

Preview Lab → · Contrast checker → · Palette generator →

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