#2E1676#2E1676

#2E1676 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.150 H 284.9°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#2E1676
RGBrgb(46, 22, 118)
HSLhsl(255, 69%, 27%)
HSVhsv(255, 81%, 46%)
CMYKcmyk(61%, 81.4%, 0%, 53.7%)
CIE-LABlab(17.75, 37.83, -50.27)
CIE-LCHlch(17.75, 62.92, 306.96°)
OKLaboklab(30.8% 0.0385 -0.1449)
OKLCHoklch(30.8% 0.15 284.9)
XYZxyz(4.6826, 2.4624, 17.3646)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1676 #5E7616
analogous
#162E76 #2E1676 #5E1676
triadic
#2E1676 #762E16 #16762E
tetradic
#2E1676 #76162E #5E7616 #16765E
square
#2E1676 #76162E #5E7616 #16765E
split-complementary
#2E1676 #765E16 #2E7616
monochromatic
#0A051A #1A0C42 #2E1676 #4220AA #592ED8

Accessibility & contrast

On white

14.07
#2E1676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E1676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1676
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1676#FFFFFF#000000##FFFFFF
##2E16761.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#043246
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1676;
/* rgb */ color: rgb(46, 22, 118);
/* oklch */ color: oklch(30.8% 0.150 284.9);
Tailwind
colors: {
  custom: {
    50: '#71579f',
    500: '#2e1676',
    950: '#000000',
  },
}
SCSS
$custom: #2e1676;
$custom-light: #71579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1676",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 255,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30796,
    "c": 0.14989,
    "h": 284.9
  },
  "luminance": 0.02463
}

Semantic roles & 50–950 ramp

primary
#2E1676
secondary
#90AC3C
accent
#EB3CC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2E1676

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

Preview Lab → · Contrast checker → · Palette generator →

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