#2E2642#2E2642

#2E2642 is a dark, muted violet. Relative luminance 0.024; OKLCH L 29.1% C 0.051 H 296.2°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2E2642
RGBrgb(46, 38, 66)
HSLhsl(257, 27%, 20%)
HSVhsv(257, 42%, 26%)
CMYKcmyk(30.3%, 42.4%, 0%, 74.1%)
CIE-LABlab(17.28, 11.05, -16.39)
CIE-LCHlch(17.28, 19.76, 303.99°)
OKLaboklab(29.12% 0.0225 -0.0456)
OKLCHoklch(29.12% 0.051 296.2)
XYZxyz(2.8030, 2.3604, 5.4611)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2642 #3A4226
analogous
#262C42 #2E2642 #3C2642
triadic
#2E2642 #422E26 #26422E
tetradic
#2E2642 #42262C #3A4226 #26423C
square
#2E2642 #42262C #3A4226 #26423C
split-complementary
#2E2642 #423C26 #2C4226
monochromatic
#0E0B13 #13101B #2E2642 #493C69 #645390

Accessibility & contrast

On white

14.27
#2E2642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E2642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2642
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2642#FFFFFF#000000##FFFFFF
##2E26421.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2B43
Deuteranopia (green-blind)
#202A41
Tritanopia (blue-blind)
#2A2B30
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e2642;
/* rgb */ color: rgb(46, 38, 66);
/* oklch */ color: oklch(29.1% 0.051 296.2);
Tailwind
colors: {
  custom: {
    50: '#676076',
    500: '#2e2642',
    950: '#000000',
  },
}
SCSS
$custom: #2e2642;
$custom-light: #676076;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2642",
  "rgb": {
    "r": 46,
    "g": 38,
    "b": 66
  },
  "hsl": {
    "h": 257.143,
    "s": 26.923,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29121,
    "c": 0.05088,
    "h": 296.2
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#2E2642
secondary
#6A744F
accent
#C365A8
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2E2642

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

Preview Lab → · Contrast checker → · Palette generator →

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