#2E1E5C#2E1E5C

#2E1E5C is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.106 H 290.3°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#2E1E5C
RGBrgb(46, 30, 92)
HSLhsl(255, 51%, 24%)
HSVhsv(255, 67%, 36%)
CMYKcmyk(50%, 67.4%, 0%, 63.9%)
CIE-LABlab(16.90, 24.88, -34.63)
CIE-LCHlch(16.90, 42.64, 305.69°)
OKLaboklab(29.43% 0.0366 -0.099)
OKLCHoklch(29.43% 0.106 290.3)
XYZxyz(3.5222, 2.2820, 10.3780)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E5C #4C5C1E
analogous
#1E2D5C #2E1E5C #4D1E5C
triadic
#2E1E5C #5C2E1E #1E5C2E
tetradic
#2E1E5C #5C1E2D #4C5C1E #1E5C4D
square
#2E1E5C #5C1E2D #4C5C1E #1E5C4D
split-complementary
#2E1E5C #5C4D1E #2D5C1E
monochromatic
#0C0817 #170F2E #2E1E5C #452D8A #5C3CB8

Accessibility & contrast

On white

14.42
#2E1E5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E1E5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E5C
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E5C#FFFFFF#000000##FFFFFF
##2E1E5C1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#202D3A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1e5c;
/* rgb */ color: rgb(46, 30, 92);
/* oklch */ color: oklch(29.4% 0.106 290.3);
Tailwind
colors: {
  custom: {
    50: '#6b5b8b',
    500: '#2e1e5c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e5c;
$custom-light: #6b5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e5c",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 92
  },
  "hsl": {
    "h": 255.484,
    "s": 50.82,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29425,
    "c": 0.10557,
    "h": 290.3
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

primary
#2E1E5C
secondary
#7D9145
accent
#DA4DB6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E1E5C

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

Preview Lab → · Contrast checker → · Palette generator →

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