#2E1152#2E1152

#2E1152 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.111 H 298.9°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#2E1152
RGBrgb(46, 17, 82)
HSLhsl(267, 66%, 19%)
HSVhsv(267, 79%, 32%)
CMYKcmyk(43.9%, 79.3%, 0%, 67.8%)
CIE-LABlab(13.17, 29.58, -33.94)
CIE-LCHlch(13.17, 45.02, 311.07°)
OKLaboklab(26.47% 0.0535 -0.097)
OKLCHoklch(26.47% 0.111 298.9)
XYZxyz(2.8498, 1.5909, 8.1379)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1152 #355211
analogous
#111552 #2E1152 #4F1152
triadic
#2E1152 #522E11 #11522E
tetradic
#2E1152 #521115 #355211 #11524F
square
#2E1152 #521115 #355211 #11524F
split-complementary
#2E1152 #524F11 #155211
monochromatic
#0E0519 #12061F #2E1152 #4A1C85 #6726B7

Accessibility & contrast

On white

15.93
#2E1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1152
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1152#FFFFFF#000000##FFFFFF
##2E11521.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1152;
/* rgb */ color: rgb(46, 17, 82);
/* oklch */ color: oklch(26.5% 0.111 298.9);
Tailwind
colors: {
  custom: {
    50: '#6b5283',
    500: '#2e1152',
    950: '#000000',
  },
}
SCSS
$custom: #2e1152;
$custom-light: #6b5283;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1152",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 266.769,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26473,
    "c": 0.11075,
    "h": 298.9
  },
  "luminance": 0.01591
}

Semantic roles & 50–950 ramp

primary
#2E1152
secondary
#648B34
accent
#E93F9D
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1152

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

Preview Lab → · Contrast checker → · Palette generator →

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