#2E1759#2E1759

#2E1759 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.112 H 293.9°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2E1759
RGBrgb(46, 23, 89)
HSLhsl(261, 59%, 22%)
HSVhsv(261, 74%, 35%)
CMYKcmyk(48.3%, 74.2%, 0%, 65.1%)
CIE-LABlab(15.03, 28.29, -35.66)
CIE-LCHlch(15.03, 45.51, 308.42°)
OKLaboklab(27.99% 0.0453 -0.102)
OKLCHoklch(27.99% 0.112 293.9)
XYZxyz(3.2358, 1.9148, 9.6484)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1759 #425917
analogous
#172159 #2E1759 #4F1759
triadic
#2E1759 #592E17 #17592E
tetradic
#2E1759 #591721 #425917 #17594F
square
#2E1759 #591721 #425917 #17594F
split-complementary
#2E1759 #594F17 #215917
monochromatic
#0D0618 #150A28 #2E1759 #47248A #6030BA

Accessibility & contrast

On white

15.18
#2E1759 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1759
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1759#FFFFFF#000000##FFFFFF
##2E17591.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#222736
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1759;
/* rgb */ color: rgb(46, 23, 89);
/* oklch */ color: oklch(28.0% 0.112 293.9);
Tailwind
colors: {
  custom: {
    50: '#6b5688',
    500: '#2e1759',
    950: '#000000',
  },
}
SCSS
$custom: #2e1759;
$custom-light: #6b5688;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1759",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 89
  },
  "hsl": {
    "h": 260.909,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27995,
    "c": 0.11164,
    "h": 293.9
  },
  "luminance": 0.01915
}

Semantic roles & 50–950 ramp

primary
#2E1759
secondary
#73903C
accent
#E246AC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1759

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

Preview Lab → · Contrast checker → · Palette generator →

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