#2E1A90#2E1A90

#2E1A90 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.178 H 279.0°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#2E1A90
RGBrgb(46, 26, 144)
HSLhsl(250, 69%, 33%)
HSVhsv(250, 82%, 56%)
CMYKcmyk(68.1%, 81.9%, 0%, 43.5%)
CIE-LABlab(21.33, 43.86, -60.79)
CIE-LCHlch(21.33, 74.96, 305.81°)
OKLaboklab(34.15% 0.0279 -0.1756)
OKLCHoklch(34.15% 0.178 279)
XYZxyz(6.5285, 3.3327, 26.6794)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A90 #7C901A
analogous
#1A4190 #2E1A90 #691A90
triadic
#2E1A90 #902E1A #1A902E
tetradic
#2E1A90 #901A41 #7C901A #1A9069
square
#2E1A90 #901A41 #7C901A #1A9069
split-complementary
#2E1A90 #90691A #41901A
monochromatic
#0D0728 #1D115C #2E1A90 #3F23C4 #6047DE

Accessibility & contrast

On white

12.60
#2E1A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2E1A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A90
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A90#FFFFFF#000000##FFFFFF
##2E1A901.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1a90;
/* rgb */ color: rgb(46, 26, 144);
/* oklch */ color: oklch(34.1% 0.178 279.0);
Tailwind
colors: {
  custom: {
    50: '#765bb2',
    500: '#2e1a90',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a90;
$custom-light: #765bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a90",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 144
  },
  "hsl": {
    "h": 250.169,
    "s": 69.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34146,
    "c": 0.17776,
    "h": 279
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1A90

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

Preview Lab → · Contrast checker → · Palette generator →

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