#2E1140#2E1140

#2E1140 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.088 H 309.9°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#2E1140
RGBrgb(46, 17, 64)
HSLhsl(277, 58%, 16%)
HSVhsv(277, 73%, 25%)
CMYKcmyk(28.1%, 73.4%, 0%, 74.9%)
CIE-LABlab(11.63, 24.51, -23.94)
CIE-LCHlch(11.63, 34.26, 315.67°)
OKLaboklab(24.89% 0.0564 -0.0676)
OKLCHoklch(24.89% 0.088 309.9)
XYZxyz(2.2524, 1.3519, 4.9918)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1140 #234011
analogous
#161140 #2E1140 #40113A
triadic
#2E1140 #402E11 #11402E
tetradic
#2E1140 #401611 #234011 #113A40
square
#2E1140 #401611 #234011 #113A40
split-complementary
#2E1140 #3A4011 #114016
monochromatic
#110618 #110618 #2E1140 #511E70 #742BA1

Accessibility & contrast

On white

16.53
#2E1140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1140
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1140#FFFFFF#000000##FFFFFF
##2E11401.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#0A1F3F
Tritanopia (blue-blind)
#2C1B26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e1140;
/* rgb */ color: rgb(46, 17, 64);
/* oklch */ color: oklch(24.9% 0.088 309.9);
Tailwind
colors: {
  custom: {
    50: '#695175',
    500: '#2e1140',
    950: '#000000',
  },
}
SCSS
$custom: #2e1140;
$custom-light: #695175;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1140",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 64
  },
  "hsl": {
    "h": 277.021,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24887,
    "c": 0.08803,
    "h": 309.9
  },
  "luminance": 0.01352
}

Semantic roles & 50–950 ramp

primary
#2E1140
secondary
#4E7933
accent
#E14782
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E1140

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

Preview Lab → · Contrast checker → · Palette generator →

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