#2E1153#2E1153

#2E1153 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.112 H 298.4°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#2E1153
RGBrgb(46, 17, 83)
HSLhsl(266, 66%, 20%)
HSVhsv(266, 80%, 33%)
CMYKcmyk(44.6%, 79.5%, 0%, 67.5%)
CIE-LABlab(13.27, 29.87, -34.47)
CIE-LCHlch(13.27, 45.62, 310.91°)
OKLaboklab(26.57% 0.0533 -0.0985)
OKLCHoklch(26.57% 0.112 298.4)
XYZxyz(2.8881, 1.6062, 8.3398)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1153 #365311
analogous
#111553 #2E1153 #4F1153
triadic
#2E1153 #532E11 #11532E
tetradic
#2E1153 #531115 #365311 #11534F
square
#2E1153 #531115 #365311 #11534F
split-complementary
#2E1153 #534F11 #155311
monochromatic
#0E0519 #120720 #2E1153 #4A1B86 #6626B9

Accessibility & contrast

On white

15.89
#2E1153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1153
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1153#FFFFFF#000000##FFFFFF
##2E11531.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002255
Deuteranopia (green-blind)
#002152
Tritanopia (blue-blind)
#252231
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1153;
/* rgb */ color: rgb(46, 17, 83);
/* oklch */ color: oklch(26.6% 0.112 298.4);
Tailwind
colors: {
  custom: {
    50: '#6b5284',
    500: '#2e1153',
    950: '#000000',
  },
}
SCSS
$custom: #2e1153;
$custom-light: #6b5284;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1153",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 83
  },
  "hsl": {
    "h": 266.364,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26568,
    "c": 0.112,
    "h": 298.4
  },
  "luminance": 0.01606
}

Semantic roles & 50–950 ramp

primary
#2E1153
secondary
#658C34
accent
#E93F9E
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1153

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

Preview Lab → · Contrast checker → · Palette generator →

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