#2E0E4B#2E0E4B

#2E0E4B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.106 H 303.4°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#2E0E4B
RGBrgb(46, 14, 75)
HSLhsl(271, 69%, 17%)
HSVhsv(271, 81%, 29%)
CMYKcmyk(38.7%, 81.3%, 0%, 70.6%)
CIE-LABlab(11.98, 29.16, -31.08)
CIE-LCHlch(11.98, 42.62, 313.17°)
OKLaboklab(25.42% 0.0585 -0.0885)
OKLCHoklch(25.42% 0.106 303.4)
XYZxyz(2.5535, 1.4029, 6.7915)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0E4B #2B4B0E
analogous
#0F0E4B #2E0E4B #4B0E4A
triadic
#2E0E4B #4B2E0E #0E4B2E
tetradic
#2E0E4B #4B0F0E #2B4B0E #0E4A4B
square
#2E0E4B #4B0F0E #2B4B0E #0E4A4B
split-complementary
#2E0E4B #4A4B0E #0E4B0F
monochromatic
#10051A #10051A #2E0E4B #4E187F #6D21B2

Accessibility & contrast

On white

16.40
#2E0E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2E0E4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0E4B
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0E4B#FFFFFF#000000##FFFFFF
##2E0E4B1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#281D2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e0e4b;
/* rgb */ color: rgb(46, 14, 75);
/* oklch */ color: oklch(25.4% 0.106 303.4);
Tailwind
colors: {
  custom: {
    50: '#6a507e',
    500: '#2e0e4b',
    950: '#000000',
  },
}
SCSS
$custom: #2e0e4b;
$custom-light: #6a507e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0e4b",
  "rgb": {
    "r": 46,
    "g": 14,
    "b": 75
  },
  "hsl": {
    "h": 271.475,
    "s": 68.539,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25425,
    "c": 0.1061,
    "h": 303.4
  },
  "luminance": 0.01403
}

Semantic roles & 50–950 ramp

primary
#2E0E4B
secondary
#58862F
accent
#EB3C90
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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