#2E0E4D#2E0E4D

#2E0E4D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.109 H 302.3°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#2E0E4D
RGBrgb(46, 14, 77)
HSLhsl(270, 69%, 18%)
HSVhsv(270, 82%, 30%)
CMYKcmyk(40.3%, 81.8%, 0%, 69.8%)
CIE-LABlab(12.16, 29.72, -32.16)
CIE-LCHlch(12.16, 43.79, 312.73°)
OKLaboklab(25.61% 0.058 -0.0917)
OKLCHoklch(25.61% 0.109 302.3)
XYZxyz(2.6230, 1.4307, 7.1577)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0E4D #2D4D0E
analogous
#0E0E4D #2E0E4D #4D0E4C
triadic
#2E0E4D #4D2E0E #0E4D2E
tetradic
#2E0E4D #4D0E0E #2D4D0E #0E4C4D
square
#2E0E4D #4D0E0E #2D4D0E #0E4C4D
split-complementary
#2E0E4D #4C4D0E #0E4D0E
monochromatic
#0F051A #0F051A #2E0E4D #4D1781 #6C21B5

Accessibility & contrast

On white

16.33
#2E0E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2E0E4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0E4D
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0E4D#FFFFFF#000000##FFFFFF
##2E0E4D1.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#271E2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e0e4d;
/* rgb */ color: rgb(46, 14, 77);
/* oklch */ color: oklch(25.6% 0.109 302.3);
Tailwind
colors: {
  custom: {
    50: '#6a507f',
    500: '#2e0e4d',
    950: '#000000',
  },
}
SCSS
$custom: #2e0e4d;
$custom-light: #6a507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0e4d",
  "rgb": {
    "r": 46,
    "g": 14,
    "b": 77
  },
  "hsl": {
    "h": 270.476,
    "s": 69.231,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25612,
    "c": 0.10851,
    "h": 302.3
  },
  "luminance": 0.01431
}

Semantic roles & 50–950 ramp

primary
#2E0E4D
secondary
#5B882F
accent
#EC3C93
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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