#2E1D64#2E1D64

#2E1D64 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.118 H 288.1°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2E1D64
RGBrgb(46, 29, 100)
HSLhsl(254, 55%, 25%)
HSVhsv(254, 71%, 39%)
CMYKcmyk(54%, 71%, 0%, 60.8%)
CIE-LABlab(17.36, 28.14, -39.18)
CIE-LCHlch(17.36, 48.24, 305.68°)
OKLaboklab(29.98% 0.0367 -0.1124)
OKLCHoklch(29.98% 0.118 288.1)
XYZxyz(3.8657, 2.3795, 12.3097)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D64 #53641D
analogous
#1D2F64 #2E1D64 #511D64
triadic
#2E1D64 #642E1D #1D642E
tetradic
#2E1D64 #641D2F #53641D #1D6451
square
#2E1D64 #641D2F #53641D #1D6451
split-complementary
#2E1D64 #64511D #2F641D
monochromatic
#0B0718 #180F35 #2E1D64 #442B93 #5A39C3

Accessibility & contrast

On white

14.23
#2E1D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E1D64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D64
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D64#FFFFFF#000000##FFFFFF
##2E1D641.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002963
Tritanopia (blue-blind)
#1A2F3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1d64;
/* rgb */ color: rgb(46, 29, 100);
/* oklch */ color: oklch(30.0% 0.118 288.1);
Tailwind
colors: {
  custom: {
    50: '#6d5a91',
    500: '#2e1d64',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d64;
$custom-light: #6d5a91;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d64",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 100
  },
  "hsl": {
    "h": 254.366,
    "s": 55.039,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29978,
    "c": 0.11826,
    "h": 288.1
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#2E1D64
secondary
#859944
accent
#DE49BB
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2E1D64

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

Preview Lab → · Contrast checker → · Palette generator →

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