#2E2440#2E2440

#2E2440 is a dark, muted violet. Relative luminance 0.022; OKLCH L 28.5% C 0.052 H 299.6°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2E2440
RGBrgb(46, 36, 64)
HSLhsl(261, 28%, 20%)
HSVhsv(261, 44%, 25%)
CMYKcmyk(28.1%, 43.8%, 0%, 74.9%)
CIE-LABlab(16.57, 11.87, -16.11)
CIE-LCHlch(16.57, 20.01, 306.37°)
OKLaboklab(28.55% 0.0255 -0.0448)
OKLCHoklch(28.55% 0.052 299.6)
XYZxyz(2.6828, 2.2127, 5.1353)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2440 #364024
analogous
#242840 #2E2440 #3C2440
triadic
#2E2440 #402E24 #24402E
tetradic
#2E2440 #402428 #364024 #24403C
square
#2E2440 #402428 #364024 #24403C
split-complementary
#2E2440 #403C24 #284024
monochromatic
#0E0B14 #120E19 #2E2440 #4A3A67 #66508E

Accessibility & contrast

On white

14.56
#2E2440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E2440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2440
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2440#FFFFFF#000000##FFFFFF
##2E24401.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2941
Deuteranopia (green-blind)
#1F293F
Tritanopia (blue-blind)
#2B292F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e2440;
/* rgb */ color: rgb(46, 36, 64);
/* oklch */ color: oklch(28.5% 0.052 299.6);
Tailwind
colors: {
  custom: {
    50: '#675e75',
    500: '#2e2440',
    950: '#000000',
  },
}
SCSS
$custom: #2e2440;
$custom-light: #675e75;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2440",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 64
  },
  "hsl": {
    "h": 261.429,
    "s": 28,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28546,
    "c": 0.05155,
    "h": 299.6
  },
  "luminance": 0.02213
}

Semantic roles & 50–950 ramp

primary
#2E2440
secondary
#65734D
accent
#C463A2
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2E2440

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

Preview Lab → · Contrast checker → · Palette generator →

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