#2E2442#2E2442

#2E2442 is a dark, muted violet. Relative luminance 0.022; OKLCH L 28.7% C 0.055 H 298.2°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#2E2442
RGBrgb(46, 36, 66)
HSLhsl(260, 29%, 20%)
HSVhsv(260, 45%, 26%)
CMYKcmyk(30.3%, 45.5%, 0%, 74.1%)
CIE-LABlab(16.68, 12.46, -17.32)
CIE-LCHlch(16.68, 21.34, 305.74°)
OKLaboklab(28.67% 0.0259 -0.0483)
OKLCHoklch(28.67% 0.055 298.2)
XYZxyz(2.7407, 2.2359, 5.4404)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2442 #384224
analogous
#242942 #2E2442 #3D2442
triadic
#2E2442 #422E24 #24422E
tetradic
#2E2442 #422429 #384224 #24423D
square
#2E2442 #422429 #384224 #24423D
split-complementary
#2E2442 #423D24 #294224
monochromatic
#0E0B14 #120E1A #2E2442 #4A3A6A #654F91

Accessibility & contrast

On white

14.51
#2E2442 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E2442 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2442
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2442#FFFFFF#000000##FFFFFF
##2E24421.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2943
Deuteranopia (green-blind)
#1E2941
Tritanopia (blue-blind)
#2A292F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e2442;
/* rgb */ color: rgb(46, 36, 66);
/* oklch */ color: oklch(28.7% 0.055 298.2);
Tailwind
colors: {
  custom: {
    50: '#675e76',
    500: '#2e2442',
    950: '#000000',
  },
}
SCSS
$custom: #2e2442;
$custom-light: #675e76;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2442",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 66
  },
  "hsl": {
    "h": 260,
    "s": 29.412,
    "l": 20
  },
  "oklch": {
    "l": 0.28669,
    "c": 0.05485,
    "h": 298.2
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#2E2442
secondary
#68754D
accent
#C662A4
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2E2442

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

Preview Lab → · Contrast checker → · Palette generator →

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