#2E1A76#2E1A76

#2E1A76 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.146 H 284.1°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#2E1A76
RGBrgb(46, 26, 118)
HSLhsl(253, 64%, 28%)
HSVhsv(253, 78%, 46%)
CMYKcmyk(61%, 78%, 0%, 53.7%)
CIE-LABlab(18.48, 35.72, -49.06)
CIE-LCHlch(18.48, 60.69, 306.06°)
OKLaboklab(31.31% 0.0356 -0.1413)
OKLCHoklch(31.31% 0.146 284.1)
XYZxyz(4.7651, 2.6273, 17.3921)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A76 #62761A
analogous
#1A3476 #2E1A76 #5C1A76
triadic
#2E1A76 #762E1A #1A762E
tetradic
#2E1A76 #761A34 #62761A #1A765C
square
#2E1A76 #761A34 #62761A #1A765C
split-complementary
#2E1A76 #765C1A #34761A
monochromatic
#0A0619 #1A0F44 #2E1A76 #4225A8 #5937D3

Accessibility & contrast

On white

13.77
#2E1A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E1A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A76
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A76#FFFFFF#000000##FFFFFF
##2E1A761.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#043447
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1a76;
/* rgb */ color: rgb(46, 26, 118);
/* oklch */ color: oklch(31.3% 0.146 284.1);
Tailwind
colors: {
  custom: {
    50: '#70599e',
    500: '#2e1a76',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a76;
$custom-light: #70599e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a76",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 253.043,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31312,
    "c": 0.14575,
    "h": 284.1
  },
  "luminance": 0.02628
}

Semantic roles & 50–950 ramp

primary
#2E1A76
secondary
#94AB41
accent
#E741C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1A76

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

Preview Lab → · Contrast checker → · Palette generator →

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