#2E2140#2E2140

#2E2140 is a dark, muted violet. Relative luminance 0.020; OKLCH L 27.9% C 0.058 H 302.1°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#2E2140
RGBrgb(46, 33, 64)
HSLhsl(265, 32%, 19%)
HSVhsv(265, 48%, 25%)
CMYKcmyk(28.1%, 48.4%, 0%, 74.9%)
CIE-LABlab(15.69, 13.98, -17.49)
CIE-LCHlch(15.69, 22.39, 308.64°)
OKLaboklab(27.88% 0.0307 -0.0488)
OKLCHoklch(27.88% 0.058 302.1)
XYZxyz(2.5958, 2.0387, 5.1063)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2140 #334021
analogous
#212440 #2E2140 #3E2140
triadic
#2E2140 #402E21 #21402E
tetradic
#2E2140 #402124 #334021 #21403E
square
#2E2140 #402124 #334021 #21403E
split-complementary
#2E2140 #403E21 #244021
monochromatic
#0F0A14 #110C18 #2E2140 #4B3668 #684B91

Accessibility & contrast

On white

14.92
#2E2140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2E2140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2140
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2140#FFFFFF#000000##FFFFFF
##2E21401.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192741
Deuteranopia (green-blind)
#1C273F
Tritanopia (blue-blind)
#2B262D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e2140;
/* rgb */ color: rgb(46, 33, 64);
/* oklch */ color: oklch(27.9% 0.058 302.1);
Tailwind
colors: {
  custom: {
    50: '#675c75',
    500: '#2e2140',
    950: '#000000',
  },
}
SCSS
$custom: #2e2140;
$custom-light: #675c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2140",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 265.161,
    "s": 31.959,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27882,
    "c": 0.05764,
    "h": 302.1
  },
  "luminance": 0.02039
}

Semantic roles & 50–950 ramp

primary
#2E2140
secondary
#627449
accent
#C8609C
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2E2140

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

Preview Lab → · Contrast checker → · Palette generator →

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