#2E1A73#2E1A73

#2E1A73 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.142 H 284.8°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#2E1A73
RGBrgb(46, 26, 115)
HSLhsl(253, 63%, 28%)
HSVhsv(253, 77%, 45%)
CMYKcmyk(60%, 77.4%, 0%, 54.9%)
CIE-LABlab(18.18, 34.77, -47.64)
CIE-LCHlch(18.18, 58.97, 306.12°)
OKLaboklab(31% 0.0364 -0.1372)
OKLCHoklch(31% 0.142 284.8)
XYZxyz(4.5897, 2.5572, 16.4681)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A73 #5F731A
analogous
#1A3273 #2E1A73 #5A1A73
triadic
#2E1A73 #732E1A #1A732E
tetradic
#2E1A73 #731A32 #5F731A #1A735A
square
#2E1A73 #731A32 #5F731A #1A735A
split-complementary
#2E1A73 #735A1A #32731A
monochromatic
#0A0619 #1A0F41 #2E1A73 #4225A5 #5936D2

Accessibility & contrast

On white

13.89
#2E1A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E1A73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A73
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A73#FFFFFF#000000##FFFFFF
##2E1A731.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#093345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1a73;
/* rgb */ color: rgb(46, 26, 115);
/* oklch */ color: oklch(31.0% 0.142 284.8);
Tailwind
colors: {
  custom: {
    50: '#70599c',
    500: '#2e1a73',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a73;
$custom-light: #70599c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a73",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 115
  },
  "hsl": {
    "h": 253.483,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31,
    "c": 0.14193,
    "h": 284.8
  },
  "luminance": 0.02557
}

Semantic roles & 50–950 ramp

primary
#2E1A73
secondary
#91A841
accent
#E642C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1A73

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

Preview Lab → · Contrast checker → · Palette generator →

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