#2E1155#2E1155

#2E1155 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.114 H 297.4°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#2E1155
RGBrgb(46, 17, 85)
HSLhsl(266, 67%, 20%)
HSVhsv(266, 80%, 33%)
CMYKcmyk(45.9%, 80%, 0%, 66.7%)
CIE-LABlab(13.46, 30.45, -35.53)
CIE-LCHlch(13.46, 46.79, 310.60°)
OKLaboklab(26.76% 0.0527 -0.1016)
OKLCHoklch(26.76% 0.114 297.4)
XYZxyz(2.9664, 1.6376, 8.7524)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1155 #385511
analogous
#111655 #2E1155 #501155
triadic
#2E1155 #552E11 #11552E
tetradic
#2E1155 #551116 #385511 #115550
square
#2E1155 #551116 #385511 #115550
split-complementary
#2E1155 #555011 #165511
monochromatic
#0E051A #120722 #2E1155 #4A1B88 #6525BB

Accessibility & contrast

On white

15.82
#2E1155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2E1155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1155
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1155#FFFFFF#000000##FFFFFF
##2E11551.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#242332
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1155;
/* rgb */ color: rgb(46, 17, 85);
/* oklch */ color: oklch(26.8% 0.114 297.4);
Tailwind
colors: {
  custom: {
    50: '#6b5286',
    500: '#2e1155',
    950: '#000000',
  },
}
SCSS
$custom: #2e1155;
$custom-light: #6b5286;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1155",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 265.588,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.2676,
    "c": 0.11449,
    "h": 297.4
  },
  "luminance": 0.01638
}

Semantic roles & 50–950 ramp

primary
#2E1155
secondary
#688E34
accent
#EA3EA1
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1155

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

Preview Lab → · Contrast checker → · Palette generator →

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