#2E1D43#2E1D43

#2E1D43 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.2% C 0.070 H 302.7°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#2E1D43
RGBrgb(46, 29, 67)
HSLhsl(267, 40%, 19%)
HSVhsv(267, 57%, 26%)
CMYKcmyk(31.3%, 56.7%, 0%, 73.7%)
CIE-LABlab(14.76, 17.66, -21.04)
CIE-LCHlch(14.76, 27.47, 310.00°)
OKLaboklab(27.25% 0.0379 -0.0591)
OKLCHoklch(27.25% 0.07 302.7)
XYZxyz(2.5790, 1.8648, 5.5332)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D43 #32431D
analogous
#1D1F43 #2E1D43 #411D43
triadic
#2E1D43 #432E1D #1D432E
tetradic
#2E1D43 #431D1F #32431D #1D4341
square
#2E1D43 #431D1F #32431D #1D4341
split-complementary
#2E1D43 #43411D #1F431D
monochromatic
#0F0915 #110B18 #2E1D43 #4B2F6E #694298

Accessibility & contrast

On white

15.29
#2E1D43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1D43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D43
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D43#FFFFFF#000000##FFFFFF
##2E1D431.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112544
Deuteranopia (green-blind)
#162542
Tritanopia (blue-blind)
#2A242C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1d43;
/* rgb */ color: rgb(46, 29, 67);
/* oklch */ color: oklch(27.2% 0.070 302.7);
Tailwind
colors: {
  custom: {
    50: '#685977',
    500: '#2e1d43',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d43;
$custom-light: #685977;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d43",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 67
  },
  "hsl": {
    "h": 266.842,
    "s": 39.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27248,
    "c": 0.07026,
    "h": 302.7
  },
  "luminance": 0.01865
}

Semantic roles & 50–950 ramp

primary
#2E1D43
secondary
#617844
accent
#CF589A
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2E1D43

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

Preview Lab → · Contrast checker → · Palette generator →

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