#2E1A7A#2E1A7A

#2E1A7A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.151 H 283.2°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2E1A7A
RGBrgb(46, 26, 122)
HSLhsl(253, 65%, 29%)
HSVhsv(253, 79%, 48%)
CMYKcmyk(62.3%, 78.7%, 0%, 52.2%)
CIE-LABlab(18.90, 37.00, -50.93)
CIE-LCHlch(18.90, 62.95, 305.99°)
OKLaboklab(31.73% 0.0345 -0.1468)
OKLCHoklch(31.73% 0.151 283.2)
XYZxyz(5.0079, 2.7244, 18.6706)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A7A #667A1A
analogous
#1A367A #2E1A7A #5E1A7A
triadic
#2E1A7A #7A2E1A #1A7A2E
tetradic
#2E1A7A #7A1A36 #667A1A #1A7A5E
square
#2E1A7A #7A1A36 #667A1A #1A7A5E
split-complementary
#2E1A7A #7A5E1A #367A1A
monochromatic
#0A0519 #1B0F48 #2E1A7A #4125AC #5A39D5

Accessibility & contrast

On white

13.59
#2E1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E1A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A7A
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A7A#FFFFFF#000000##FFFFFF
##2E1A7A1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1a7a;
/* rgb */ color: rgb(46, 26, 122);
/* oklch */ color: oklch(31.7% 0.151 283.2);
Tailwind
colors: {
  custom: {
    50: '#7159a1',
    500: '#2e1a7a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a7a;
$custom-light: #7159a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a7a",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 252.5,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31734,
    "c": 0.15081,
    "h": 283.2
  },
  "luminance": 0.02725
}

Semantic roles & 50–950 ramp

primary
#2E1A7A
secondary
#98AE41
accent
#E840C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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