#2E1A7E#2E1A7E

#2E1A7E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.156 H 282.3°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2E1A7E
RGBrgb(46, 26, 126)
HSLhsl(252, 66%, 30%)
HSVhsv(252, 79%, 49%)
CMYKcmyk(63.5%, 79.4%, 0%, 50.6%)
CIE-LABlab(19.33, 38.26, -52.78)
CIE-LCHlch(19.33, 65.19, 305.94°)
OKLaboklab(32.16% 0.0333 -0.1522)
OKLCHoklch(32.16% 0.156 282.3)
XYZxyz(5.2608, 2.8256, 20.0028)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A7E #6A7E1A
analogous
#1A387E #2E1A7E #601A7E
triadic
#2E1A7E #7E2E1A #1A7E2E
tetradic
#2E1A7E #7E1A38 #6A7E1A #1A7E60
square
#2E1A7E #7E1A38 #6A7E1A #1A7E60
split-complementary
#2E1A7E #7E601A #387E1A
monochromatic
#090519 #1B104B #2E1A7E #4124B1 #5B3CD7

Accessibility & contrast

On white

13.42
#2E1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A7E
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A7E#FFFFFF#000000##FFFFFF
##2E1A7E1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1a7e;
/* rgb */ color: rgb(46, 26, 126);
/* oklch */ color: oklch(32.2% 0.156 282.3);
Tailwind
colors: {
  custom: {
    50: '#725aa4',
    500: '#2e1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a7e;
$custom-light: #725aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a7e",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 252,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32161,
    "c": 0.15581,
    "h": 282.3
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#2E1A7E
secondary
#9CB242
accent
#E93FC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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