#2E1A6A#2E1A6A

#2E1A6A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.130 H 287.2°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2E1A6A
RGBrgb(46, 26, 106)
HSLhsl(255, 61%, 26%)
HSVhsv(255, 75%, 42%)
CMYKcmyk(56.6%, 75.5%, 0%, 58.4%)
CIE-LABlab(17.27, 31.89, -43.27)
CIE-LCHlch(17.27, 53.75, 306.39°)
OKLaboklab(30.09% 0.0386 -0.1244)
OKLCHoklch(30.09% 0.13 287.2)
XYZxyz(4.0969, 2.3600, 13.8725)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A6A #566A1A
analogous
#1A2E6A #2E1A6A #561A6A
triadic
#2E1A6A #6A2E1A #1A6A2E
tetradic
#2E1A6A #6A1A2E #566A1A #1A6A56
square
#2E1A6A #6A1A2E #566A1A #1A6A56
split-complementary
#2E1A6A #6A561A #2E6A1A
monochromatic
#0B0619 #190E39 #2E1A6A #43269B #5932CC

Accessibility & contrast

On white

14.27
#2E1A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E1A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A6A
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A6A#FFFFFF#000000##FFFFFF
##2E1A6A1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#152F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1a6a;
/* rgb */ color: rgb(46, 26, 106);
/* oklch */ color: oklch(30.1% 0.130 287.2);
Tailwind
colors: {
  custom: {
    50: '#6e5895',
    500: '#2e1a6a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a6a;
$custom-light: #6e5895;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a6a",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 106
  },
  "hsl": {
    "h": 255,
    "s": 60.606,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30087,
    "c": 0.13025,
    "h": 287.2
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#2E1A6A
secondary
#889F40
accent
#E444BC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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