#2E2A40#2E2A40

#2E2A40 is a dark, muted violet. Relative luminance 0.026; OKLCH L 29.9% C 0.040 H 292.2°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2E2A40
RGBrgb(46, 42, 64)
HSLhsl(251, 21%, 21%)
HSVhsv(251, 34%, 25%)
CMYKcmyk(28.1%, 34.4%, 0%, 74.9%)
CIE-LABlab(18.40, 7.62, -13.26)
CIE-LCHlch(18.40, 15.30, 299.88°)
OKLaboklab(29.94% 0.015 -0.0367)
OKLCHoklch(29.94% 0.04 292.2)
XYZxyz(2.8799, 2.6069, 5.2009)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A40 #3C402A
analogous
#2A3140 #2E2A40 #392A40
triadic
#2E2A40 #402E2A #2A402E
tetradic
#2E2A40 #402A31 #3C402A #2A4039
square
#2E2A40 #402A31 #3C402A #2A4039
split-complementary
#2E2A40 #40392A #31402A
monochromatic
#0D0C12 #13121B #2E2A40 #494265 #635A8A

Accessibility & contrast

On white

13.80
#2E2A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E2A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A40
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A40#FFFFFF#000000##FFFFFF
##2E2A401.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242D41
Deuteranopia (green-blind)
#252C3F
Tritanopia (blue-blind)
#2A2E32
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e2a40;
/* rgb */ color: rgb(46, 42, 64);
/* oklch */ color: oklch(29.9% 0.040 292.2);
Tailwind
colors: {
  custom: {
    50: '#676375',
    500: '#2e2a40',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a40;
$custom-light: #676375;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a40",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 64
  },
  "hsl": {
    "h": 250.909,
    "s": 20.755,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29944,
    "c": 0.03961,
    "h": 292.2
  },
  "luminance": 0.02607
}

Semantic roles & 50–950 ramp

primary
#2E2A40
secondary
#6C7155
accent
#BD6AAE
background
#F6F5F7
surface
#EBEAED
border
#C6C6C8
text
#060508
muted
#7A797B

Preview Lab

Preview with #2E2A40

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

Preview Lab → · Contrast checker → · Palette generator →

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