#2E2040#2E2040

#2E2040 is a dark, muted violet. Relative luminance 0.020; OKLCH L 27.7% C 0.060 H 302.9°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#2E2040
RGBrgb(46, 32, 64)
HSLhsl(266, 33%, 19%)
HSVhsv(266, 50%, 25%)
CMYKcmyk(28.1%, 50%, 0%, 74.9%)
CIE-LABlab(15.40, 14.68, -17.94)
CIE-LCHlch(15.40, 23.18, 309.30°)
OKLaboklab(27.67% 0.0324 -0.0501)
OKLCHoklch(27.67% 0.06 302.9)
XYZxyz(2.5684, 1.9840, 5.0971)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2040 #324020
analogous
#202240 #2E2040 #3E2040
triadic
#2E2040 #402E20 #20402E
tetradic
#2E2040 #402022 #324020 #20403E
square
#2E2040 #402022 #324020 #20403E
split-complementary
#2E2040 #403E20 #224020
monochromatic
#0F0A14 #110C17 #2E2040 #4B3469 #694992

Accessibility & contrast

On white

15.03
#2E2040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2E2040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2040
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2040#FFFFFF#000000##FFFFFF
##2E20401.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182641
Deuteranopia (green-blind)
#1B263F
Tritanopia (blue-blind)
#2B252C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e2040;
/* rgb */ color: rgb(46, 32, 64);
/* oklch */ color: oklch(27.7% 0.060 302.9);
Tailwind
colors: {
  custom: {
    50: '#675b75',
    500: '#2e2040',
    950: '#000000',
  },
}
SCSS
$custom: #2e2040;
$custom-light: #675b75;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2040",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 266.25,
    "s": 33.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27667,
    "c": 0.05967,
    "h": 302.9
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#2E2040
secondary
#617448
accent
#C95E9B
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2E2040

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

Preview Lab → · Contrast checker → · Palette generator →

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