#2E1D60#2E1D60

#2E1D60 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.113 H 289.3°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#2E1D60
RGBrgb(46, 29, 96)
HSLhsl(255, 54%, 25%)
HSVhsv(255, 70%, 38%)
CMYKcmyk(52.1%, 69.8%, 0%, 62.4%)
CIE-LABlab(17.01, 26.83, -37.12)
CIE-LCHlch(17.01, 45.80, 305.86°)
OKLaboklab(29.61% 0.0373 -0.1063)
OKLCHoklch(29.61% 0.113 289.3)
XYZxyz(3.6768, 2.3039, 11.3150)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D60 #4F601D
analogous
#1D2E60 #2E1D60 #501D60
triadic
#2E1D60 #602E1D #1D602E
tetradic
#2E1D60 #601D2E #4F601D #1D6050
square
#2E1D60 #601D2E #4F601D #1D6050
split-complementary
#2E1D60 #60501D #2E601D
monochromatic
#0B0718 #170F31 #2E1D60 #452B8F #5B39BE

Accessibility & contrast

On white

14.38
#2E1D60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1D60
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D60#FFFFFF#000000##FFFFFF
##2E1D601.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B62
Deuteranopia (green-blind)
#00285F
Tritanopia (blue-blind)
#1D2D3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1d60;
/* rgb */ color: rgb(46, 29, 96);
/* oklch */ color: oklch(29.6% 0.113 289.3);
Tailwind
colors: {
  custom: {
    50: '#6c5a8e',
    500: '#2e1d60',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d60;
$custom-light: #6c5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d60",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 96
  },
  "hsl": {
    "h": 255.224,
    "s": 53.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29609,
    "c": 0.1127,
    "h": 289.3
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#2E1D60
secondary
#809544
accent
#DD4BB8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E1D60

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

Preview Lab → · Contrast checker → · Palette generator →

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