#2E1142#2E1142

#2E1142 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.091 H 308.4°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#2E1142
RGBrgb(46, 17, 66)
HSLhsl(276, 59%, 16%)
HSVhsv(276, 74%, 26%)
CMYKcmyk(30.3%, 74.2%, 0%, 74.1%)
CIE-LABlab(11.79, 25.05, -25.09)
CIE-LCHlch(11.79, 35.46, 314.95°)
OKLaboklab(25.05% 0.0563 -0.071)
OKLCHoklch(25.05% 0.091 308.4)
XYZxyz(2.3103, 1.3751, 5.2969)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1142 #254211
analogous
#161142 #2E1142 #42113E
triadic
#2E1142 #422E11 #11422E
tetradic
#2E1142 #421611 #254211 #113E42
square
#2E1142 #421611 #254211 #113E42
split-complementary
#2E1142 #3E4211 #114216
monochromatic
#110618 #110618 #2E1142 #501E73 #722AA3

Accessibility & contrast

On white

16.47
#2E1142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2E1142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1142
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1142#FFFFFF#000000##FFFFFF
##2E11421.0016.471.2716.47
#FFFFFF16.471.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#081F41
Tritanopia (blue-blind)
#2B1B27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e1142;
/* rgb */ color: rgb(46, 17, 66);
/* oklch */ color: oklch(25.1% 0.091 308.4);
Tailwind
colors: {
  custom: {
    50: '#695177',
    500: '#2e1142',
    950: '#000000',
  },
}
SCSS
$custom: #2e1142;
$custom-light: #695177;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1142",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 275.51,
    "s": 59.036,
    "l": 16.275
  },
  "oklch": {
    "l": 0.2505,
    "c": 0.09056,
    "h": 308.4
  },
  "luminance": 0.01375
}

Semantic roles & 50–950 ramp

primary
#2E1142
secondary
#517C33
accent
#E24686
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E1142

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

Preview Lab → · Contrast checker → · Palette generator →

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