#2E1D5F#2E1D5F

#2E1D5F is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.111 H 289.7°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#2E1D5F
RGBrgb(46, 29, 95)
HSLhsl(255, 53%, 24%)
HSVhsv(255, 69%, 37%)
CMYKcmyk(51.6%, 69.5%, 0%, 62.7%)
CIE-LABlab(16.92, 26.50, -36.60)
CIE-LCHlch(16.92, 45.19, 305.91°)
OKLaboklab(29.52% 0.0374 -0.1048)
OKLCHoklch(29.52% 0.111 289.7)
XYZxyz(3.6310, 2.2856, 11.0741)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D5F #4E5F1D
analogous
#1D2D5F #2E1D5F #4F1D5F
triadic
#2E1D5F #5F2E1D #1D5F2E
tetradic
#2E1D5F #5F1D2D #4E5F1D #1D5F4F
square
#2E1D5F #5F1D2D #4E5F1D #1D5F4F
split-complementary
#2E1D5F #5F4F1D #2D5F1D
monochromatic
#0B0717 #170F30 #2E1D5F #452B8E #5B3ABD

Accessibility & contrast

On white

14.41
#2E1D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1D5F
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D5F#FFFFFF#000000##FFFFFF
##2E1D5F1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#1E2D3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1d5f;
/* rgb */ color: rgb(46, 29, 95);
/* oklch */ color: oklch(29.5% 0.111 289.7);
Tailwind
colors: {
  custom: {
    50: '#6c5a8d',
    500: '#2e1d5f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d5f;
$custom-light: #6c5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d5f",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 95
  },
  "hsl": {
    "h": 255.455,
    "s": 53.226,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29518,
    "c": 0.11131,
    "h": 289.7
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#2E1D5F
secondary
#7F9444
accent
#DD4BB7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E1D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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