#2E1450#2E1450

#2E1450 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.104 H 299.0°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#2E1450
RGBrgb(46, 20, 80)
HSLhsl(266, 60%, 20%)
HSVhsv(266, 75%, 31%)
CMYKcmyk(42.5%, 75%, 0%, 68.6%)
CIE-LABlab(13.59, 27.32, -31.90)
CIE-LCHlch(13.59, 41.99, 310.58°)
OKLaboklab(26.71% 0.0505 -0.091)
OKLCHoklch(26.71% 0.104 299)
XYZxyz(2.8245, 1.6603, 7.7595)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1450 #365014
analogous
#141850 #2E1450 #4C1450
triadic
#2E1450 #502E14 #14502E
tetradic
#2E1450 #501418 #365014 #14504C
square
#2E1450 #501418 #365014 #14504C
split-complementary
#2E1450 #504C14 #185014
monochromatic
#0E0618 #12081F #2E1450 #4A2081 #662CB2

Accessibility & contrast

On white

15.77
#2E1450 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2E1450 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1450
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1450#FFFFFF#000000##FFFFFF
##2E14501.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#262230
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1450;
/* rgb */ color: rgb(46, 20, 80);
/* oklch */ color: oklch(26.7% 0.104 299.0);
Tailwind
colors: {
  custom: {
    50: '#6a5482',
    500: '#2e1450',
    950: '#000000',
  },
}
SCSS
$custom: #2e1450;
$custom-light: #6a5482;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1450",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 80
  },
  "hsl": {
    "h": 266,
    "s": 60,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26713,
    "c": 0.10402,
    "h": 299
  },
  "luminance": 0.0166
}

Semantic roles & 50–950 ramp

primary
#2E1450
secondary
#658838
accent
#E3459E
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E1450

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

Preview Lab → · Contrast checker → · Palette generator →

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