#2E1659#2E1659

#2E1659 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.113 H 294.2°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#2E1659
RGBrgb(46, 22, 89)
HSLhsl(261, 60%, 22%)
HSVhsv(261, 75%, 35%)
CMYKcmyk(48.3%, 75.3%, 0%, 65.1%)
CIE-LABlab(14.82, 28.87, -36.00)
CIE-LCHlch(14.82, 46.15, 308.73°)
OKLaboklab(27.84% 0.0464 -0.1031)
OKLCHoklch(27.84% 0.113 294.2)
XYZxyz(3.2163, 1.8758, 9.6419)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1659 #415916
analogous
#162059 #2E1659 #501659
triadic
#2E1659 #592E16 #16592E
tetradic
#2E1659 #591620 #415916 #165950
square
#2E1659 #591620 #415916 #165950
split-complementary
#2E1659 #595016 #205916
monochromatic
#0D0619 #150A28 #2E1659 #47228A #612EBB

Accessibility & contrast

On white

15.27
#2E1659 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2E1659 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1659
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1659#FFFFFF#000000##FFFFFF
##2E16591.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#222735
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1659;
/* rgb */ color: rgb(46, 22, 89);
/* oklch */ color: oklch(27.8% 0.113 294.2);
Tailwind
colors: {
  custom: {
    50: '#6b5588',
    500: '#2e1659',
    950: '#000000',
  },
}
SCSS
$custom: #2e1659;
$custom-light: #6b5588;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1659",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 89
  },
  "hsl": {
    "h": 261.493,
    "s": 60.36,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27844,
    "c": 0.11303,
    "h": 294.2
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#2E1659
secondary
#72903B
accent
#E444AA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1659

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

Preview Lab → · Contrast checker → · Palette generator →

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