#2E1A75#2E1A75

#2E1A75 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.144 H 284.4°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#2E1A75
RGBrgb(46, 26, 117)
HSLhsl(253, 64%, 28%)
HSVhsv(253, 78%, 46%)
CMYKcmyk(60.7%, 77.8%, 0%, 54.1%)
CIE-LABlab(18.38, 35.41, -48.59)
CIE-LCHlch(18.38, 60.12, 306.08°)
OKLaboklab(31.21% 0.0358 -0.14)
OKLCHoklch(31.21% 0.144 284.4)
XYZxyz(4.7060, 2.6037, 17.0808)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A75 #61751A
analogous
#1A3375 #2E1A75 #5B1A75
triadic
#2E1A75 #752E1A #1A752E
tetradic
#2E1A75 #751A33 #61751A #1A755B
square
#2E1A75 #751A33 #61751A #1A755B
split-complementary
#2E1A75 #755B1A #33751A
monochromatic
#0A0619 #1A0F43 #2E1A75 #4225A7 #5937D3

Accessibility & contrast

On white

13.81
#2E1A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E1A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A75
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A75#FFFFFF#000000##FFFFFF
##2E1A751.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#063446
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1a75;
/* rgb */ color: rgb(46, 26, 117);
/* oklch */ color: oklch(31.2% 0.144 284.4);
Tailwind
colors: {
  custom: {
    50: '#70599e',
    500: '#2e1a75',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a75;
$custom-light: #70599e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a75",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 117
  },
  "hsl": {
    "h": 253.187,
    "s": 63.636,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31208,
    "c": 0.14448,
    "h": 284.4
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#2E1A75
secondary
#93AA41
accent
#E741C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1A75

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

Preview Lab → · Contrast checker → · Palette generator →

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