#2E1151#2E1151

#2E1151 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.110 H 299.4°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#2E1151
RGBrgb(46, 17, 81)
HSLhsl(267, 65%, 19%)
HSVhsv(267, 79%, 32%)
CMYKcmyk(43.2%, 79%, 0%, 68.2%)
CIE-LABlab(13.08, 29.29, -33.41)
CIE-LCHlch(13.08, 44.43, 311.24°)
OKLaboklab(26.38% 0.0537 -0.0954)
OKLCHoklch(26.38% 0.11 299.4)
XYZxyz(2.8120, 1.5758, 7.9390)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1151 #345111
analogous
#111451 #2E1151 #4E1151
triadic
#2E1151 #512E11 #11512E
tetradic
#2E1151 #511114 #345111 #11514E
square
#2E1151 #511114 #345111 #11514E
split-complementary
#2E1151 #514E11 #145111
monochromatic
#0E0519 #11061E #2E1151 #4B1C84 #6726B6

Accessibility & contrast

On white

15.97
#2E1151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E1151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1151
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1151#FFFFFF#000000##FFFFFF
##2E11511.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#262130
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1151;
/* rgb */ color: rgb(46, 17, 81);
/* oklch */ color: oklch(26.4% 0.110 299.4);
Tailwind
colors: {
  custom: {
    50: '#6b5282',
    500: '#2e1151',
    950: '#000000',
  },
}
SCSS
$custom: #2e1151;
$custom-light: #6b5282;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1151",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 267.188,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26378,
    "c": 0.1095,
    "h": 299.4
  },
  "luminance": 0.01576
}

Semantic roles & 50–950 ramp

primary
#2E1151
secondary
#638A34
accent
#E8409C
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E1151

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

Preview Lab → · Contrast checker → · Palette generator →

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