#2E1A8E#2E1A8E

#2E1A8E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.175 H 279.4°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2E1A8E
RGBrgb(46, 26, 142)
HSLhsl(250, 69%, 33%)
HSVhsv(250, 82%, 56%)
CMYKcmyk(67.6%, 81.7%, 0%, 44.3%)
CIE-LABlab(21.10, 43.25, -59.92)
CIE-LCHlch(21.10, 73.90, 305.82°)
OKLaboklab(33.92% 0.0285 -0.173)
OKLCHoklch(33.92% 0.175 279.4)
XYZxyz(6.3770, 3.2721, 25.8815)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A8E #7A8E1A
analogous
#1A408E #2E1A8E #681A8E
triadic
#2E1A8E #8E2E1A #1A8E2E
tetradic
#2E1A8E #8E1A40 #7A8E1A #1A8E68
square
#2E1A8E #8E1A40 #7A8E1A #1A8E68
split-complementary
#2E1A8E #8E681A #408E1A
monochromatic
#0C0727 #1D115A #2E1A8E #3F23C2 #6045DD

Accessibility & contrast

On white

12.69
#2E1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A8E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A8E#FFFFFF#000000##FFFFFF
##2E1A8E1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1a8e;
/* rgb */ color: rgb(46, 26, 142);
/* oklch */ color: oklch(33.9% 0.175 279.4);
Tailwind
colors: {
  custom: {
    50: '#755bb0',
    500: '#2e1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a8e;
$custom-light: #755bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a8e",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 250.345,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33921,
    "c": 0.17537,
    "h": 279.4
  },
  "luminance": 0.03273
}

Semantic roles & 50–950 ramp

primary
#2E1A8E
secondary
#AABE45
accent
#EC3CCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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