#2E2840#2E2840

#2E2840 is a dark, muted violet. Relative luminance 0.025; OKLCH L 29.5% C 0.044 H 295.1°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2E2840
RGBrgb(46, 40, 64)
HSLhsl(255, 23%, 20%)
HSVhsv(255, 38%, 25%)
CMYKcmyk(28.1%, 37.5%, 0%, 74.9%)
CIE-LABlab(17.78, 9.03, -14.22)
CIE-LCHlch(17.78, 16.85, 302.41°)
OKLaboklab(29.47% 0.0185 -0.0394)
OKLCHoklch(29.47% 0.044 295.1)
XYZxyz(2.8107, 2.4686, 5.1779)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2840 #3A4028
analogous
#282E40 #2E2840 #3A2840
triadic
#2E2840 #402E28 #28402E
tetradic
#2E2840 #40282E #3A4028 #28403A
square
#2E2840 #40282E #3A4028 #28403A
split-complementary
#2E2840 #403A28 #2E4028
monochromatic
#0E0C13 #13101A #2E2840 #494066 #64578B

Accessibility & contrast

On white

14.06
#2E2840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E2840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2840
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2840#FFFFFF#000000##FFFFFF
##2E28401.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222C41
Deuteranopia (green-blind)
#232B3F
Tritanopia (blue-blind)
#2A2C31
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e2840;
/* rgb */ color: rgb(46, 40, 64);
/* oklch */ color: oklch(29.5% 0.044 295.1);
Tailwind
colors: {
  custom: {
    50: '#676175',
    500: '#2e2840',
    950: '#000000',
  },
}
SCSS
$custom: #2e2840;
$custom-light: #676175;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2840",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 64
  },
  "hsl": {
    "h": 255,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29469,
    "c": 0.04352,
    "h": 295.1
  },
  "luminance": 0.02469
}

Semantic roles & 50–950 ramp

primary
#2E2840
secondary
#6A7252
accent
#C068AA
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060508
muted
#7A797B

Preview Lab

Preview with #2E2840

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

Preview Lab → · Contrast checker → · Palette generator →

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