#2E1A74#2E1A74

#2E1A74 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.143 H 284.6°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2E1A74
RGBrgb(46, 26, 116)
HSLhsl(253, 63%, 28%)
HSVhsv(253, 78%, 45%)
CMYKcmyk(60.3%, 77.6%, 0%, 54.5%)
CIE-LABlab(18.28, 35.09, -48.11)
CIE-LCHlch(18.28, 59.55, 306.10°)
OKLaboklab(31.1% 0.0361 -0.1386)
OKLCHoklch(31.1% 0.143 284.6)
XYZxyz(4.6475, 2.5803, 16.7728)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A74 #60741A
analogous
#1A3374 #2E1A74 #5B1A74
triadic
#2E1A74 #742E1A #1A742E
tetradic
#2E1A74 #741A33 #60741A #1A745B
square
#2E1A74 #741A33 #60741A #1A745B
split-complementary
#2E1A74 #745B1A #33741A
monochromatic
#0A0619 #1A0F42 #2E1A74 #4225A6 #5936D2

Accessibility & contrast

On white

13.85
#2E1A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1A74
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A74#FFFFFF#000000##FFFFFF
##2E1A741.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#083345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1a74;
/* rgb */ color: rgb(46, 26, 116);
/* oklch */ color: oklch(31.1% 0.143 284.6);
Tailwind
colors: {
  custom: {
    50: '#70599d',
    500: '#2e1a74',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a74;
$custom-light: #70599d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a74",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 253.333,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31104,
    "c": 0.1432,
    "h": 284.6
  },
  "luminance": 0.02581
}

Semantic roles & 50–950 ramp

primary
#2E1A74
secondary
#92A941
accent
#E641C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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