#2E0D4D#2E0D4D

#2E0D4D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.110 H 302.5°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#2E0D4D
RGBrgb(46, 13, 77)
HSLhsl(271, 71%, 18%)
HSVhsv(271, 83%, 30%)
CMYKcmyk(40.3%, 83.1%, 0%, 69.8%)
CIE-LABlab(11.99, 30.21, -32.45)
CIE-LCHlch(11.99, 44.33, 312.95°)
OKLaboklab(25.49% 0.059 -0.0925)
OKLCHoklch(25.49% 0.11 302.5)
XYZxyz(2.6099, 1.4045, 7.1533)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0D4D #2C4D0D
analogous
#0E0D4D #2E0D4D #4D0D4C
triadic
#2E0D4D #4D2E0D #0D4D2E
tetradic
#2E0D4D #4D0E0D #2C4D0D #0D4C4D
square
#2E0D4D #4D0E0D #2C4D0D #0D4C4D
split-complementary
#2E0D4D #4C4D0D #0D4D0E
monochromatic
#10041A #10041A #2E0D4D #4D1681 #6D1FB6

Accessibility & contrast

On white

16.39
#2E0D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0D4D
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0D4D#FFFFFF#000000##FFFFFF
##2E0D4D1.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#271D2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e0d4d;
/* rgb */ color: rgb(46, 13, 77);
/* oklch */ color: oklch(25.5% 0.110 302.5);
Tailwind
colors: {
  custom: {
    50: '#6b507f',
    500: '#2e0d4d',
    950: '#000000',
  },
}
SCSS
$custom: #2e0d4d;
$custom-light: #6b507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0d4d",
  "rgb": {
    "r": 46,
    "g": 13,
    "b": 77
  },
  "hsl": {
    "h": 270.938,
    "s": 71.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2549,
    "c": 0.10976,
    "h": 302.5
  },
  "luminance": 0.01405
}

Semantic roles & 50–950 ramp

primary
#2E0D4D
secondary
#59882E
accent
#EE3A91
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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