#2E1756#2E1756

#2E1756 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.108 H 295.2°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#2E1756
RGBrgb(46, 23, 86)
HSLhsl(262, 58%, 21%)
HSVhsv(262, 73%, 34%)
CMYKcmyk(46.5%, 73.3%, 0%, 66.3%)
CIE-LABlab(14.76, 27.36, -34.07)
CIE-LCHlch(14.76, 43.70, 308.76°)
OKLaboklab(27.72% 0.0458 -0.0974)
OKLCHoklch(27.72% 0.108 295.2)
XYZxyz(3.1124, 1.8654, 8.9984)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1756 #3F5617
analogous
#172056 #2E1756 #4E1756
triadic
#2E1756 #562E17 #17562E
tetradic
#2E1756 #561720 #3F5617 #17564E
square
#2E1756 #561720 #3F5617 #17564E
split-complementary
#2E1756 #564E17 #205617
monochromatic
#0D0618 #140A26 #2E1756 #482486 #6231B7

Accessibility & contrast

On white

15.29
#2E1756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1756
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1756#FFFFFF#000000##FFFFFF
##2E17561.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#232634
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1756;
/* rgb */ color: rgb(46, 23, 86);
/* oklch */ color: oklch(27.7% 0.108 295.2);
Tailwind
colors: {
  custom: {
    50: '#6b5686',
    500: '#2e1756',
    950: '#000000',
  },
}
SCSS
$custom: #2e1756;
$custom-light: #6b5686;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1756",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 86
  },
  "hsl": {
    "h": 261.905,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27718,
    "c": 0.10763,
    "h": 295.2
  },
  "luminance": 0.01866
}

Semantic roles & 50–950 ramp

primary
#2E1756
secondary
#6F8D3C
accent
#E147A9
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1756

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

Preview Lab → · Contrast checker → · Palette generator →

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