#2E1A6D#2E1A6D

#2E1A6D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.134 H 286.4°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#2E1A6D
RGBrgb(46, 26, 109)
HSLhsl(254, 61%, 26%)
HSVhsv(254, 76%, 43%)
CMYKcmyk(57.8%, 76.1%, 0%, 57.3%)
CIE-LABlab(17.57, 32.85, -44.74)
CIE-LCHlch(17.57, 55.51, 306.29°)
OKLaboklab(30.39% 0.0379 -0.1287)
OKLCHoklch(30.39% 0.134 286.4)
XYZxyz(4.2556, 2.4235, 14.7086)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A6D #596D1A
analogous
#1A306D #2E1A6D #581A6D
triadic
#2E1A6D #6D2E1A #1A6D2E
tetradic
#2E1A6D #6D1A30 #596D1A #1A6D58
square
#2E1A6D #6D1A30 #596D1A #1A6D58
split-complementary
#2E1A6D #6D581A #306D1A
monochromatic
#0A0619 #190E3C #2E1A6D #43269E #5833CE

Accessibility & contrast

On white

14.14
#2E1A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1A6D
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A6D#FFFFFF#000000##FFFFFF
##2E1A6D1.0014.141.4814.14
#FFFFFF14.141.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#123042
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1a6d;
/* rgb */ color: rgb(46, 26, 109);
/* oklch */ color: oklch(30.4% 0.134 286.4);
Tailwind
colors: {
  custom: {
    50: '#6f5998',
    500: '#2e1a6d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a6d;
$custom-light: #6f5998;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a6d",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 109
  },
  "hsl": {
    "h": 254.458,
    "s": 61.481,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30387,
    "c": 0.13418,
    "h": 286.4
  },
  "luminance": 0.02424
}

Semantic roles & 50–950 ramp

primary
#2E1A6D
secondary
#8BA241
accent
#E543BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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