#2E2240#2E2240

#2E2240 is a dark, muted violet. Relative luminance 0.021; OKLCH L 28.1% C 0.056 H 301.3°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#2E2240
RGBrgb(46, 34, 64)
HSLhsl(264, 31%, 19%)
HSVhsv(264, 47%, 25%)
CMYKcmyk(28.1%, 46.9%, 0%, 74.9%)
CIE-LABlab(15.98, 13.28, -17.03)
CIE-LCHlch(15.98, 21.60, 307.94°)
OKLaboklab(28.1% 0.0289 -0.0475)
OKLCHoklch(28.1% 0.056 301.3)
XYZxyz(2.6240, 2.0951, 5.1156)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2240 #344022
analogous
#222540 #2E2240 #3D2240
triadic
#2E2240 #402E22 #22402E
tetradic
#2E2240 #402225 #344022 #22403D
square
#2E2240 #402225 #344022 #22403D
split-complementary
#2E2240 #403D22 #254022
monochromatic
#0E0B14 #110D18 #2E2240 #4B3768 #674C90

Accessibility & contrast

On white

14.80
#2E2240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E2240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2240
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2240#FFFFFF#000000##FFFFFF
##2E22401.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2841
Deuteranopia (green-blind)
#1D283F
Tritanopia (blue-blind)
#2B272D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e2240;
/* rgb */ color: rgb(46, 34, 64);
/* oklch */ color: oklch(28.1% 0.056 301.3);
Tailwind
colors: {
  custom: {
    50: '#675d75',
    500: '#2e2240',
    950: '#000000',
  },
}
SCSS
$custom: #2e2240;
$custom-light: #675d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2240",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 264,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28101,
    "c": 0.05561,
    "h": 301.3
  },
  "luminance": 0.02095
}

Semantic roles & 50–950 ramp

primary
#2E2240
secondary
#63734B
accent
#C7619E
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2E2240

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

Preview Lab → · Contrast checker → · Palette generator →

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