#2E1490#2E1490

#2E1490 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.182 H 279.7°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2E1490
RGBrgb(46, 20, 144)
HSLhsl(253, 76%, 32%)
HSVhsv(253, 86%, 56%)
CMYKcmyk(68.1%, 86.1%, 0%, 43.5%)
CIE-LABlab(20.42, 46.54, -62.30)
CIE-LCHlch(20.42, 77.77, 306.76°)
OKLaboklab(33.52% 0.0306 -0.1798)
OKLCHoklch(33.52% 0.182 279.7)
XYZxyz(6.4093, 3.0942, 26.6396)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1490 #769014
analogous
#143890 #2E1490 #6C1490
triadic
#2E1490 #902E14 #14902E
tetradic
#2E1490 #901438 #769014 #14906C
square
#2E1490 #901438 #769014 #14906C
split-complementary
#2E1490 #906C14 #389014
monochromatic
#0C0525 #1D0D5A #2E1490 #3F1BC6 #5E3BE4

Accessibility & contrast

On white

12.97
#2E1490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E1490 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1490
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1490#FFFFFF#000000##FFFFFF
##2E14901.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1490;
/* rgb */ color: rgb(46, 20, 144);
/* oklch */ color: oklch(33.5% 0.182 279.7);
Tailwind
colors: {
  custom: {
    50: '#7658b2',
    500: '#2e1490',
    950: '#000000',
  },
}
SCSS
$custom: #2e1490;
$custom-light: #7658b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1490",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 144
  },
  "hsl": {
    "h": 252.581,
    "s": 75.61,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33517,
    "c": 0.18244,
    "h": 279.7
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#2E1490
secondary
#A7C33D
accent
#F236CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1490

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

Preview Lab → · Contrast checker → · Palette generator →

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