#2E1664#2E1664

#2E1664 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.127 H 290.1°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#2E1664
RGBrgb(46, 22, 100)
HSLhsl(258, 64%, 24%)
HSVhsv(258, 78%, 39%)
CMYKcmyk(54%, 78%, 0%, 60.8%)
CIE-LABlab(15.87, 32.27, -41.62)
CIE-LCHlch(15.87, 52.66, 307.79°)
OKLaboklab(28.92% 0.0438 -0.1195)
OKLCHoklch(28.92% 0.127 290.1)
XYZxyz(3.7132, 2.0746, 12.2589)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1664 #4C6416
analogous
#162564 #2E1664 #551664
triadic
#2E1664 #642E16 #16642E
tetradic
#2E1664 #641625 #4C6416 #166455
square
#2E1664 #641625 #4C6416 #166455
split-complementary
#2E1664 #645516 #256416
monochromatic
#0C0619 #170B32 #2E1664 #452196 #5C2CC8

Accessibility & contrast

On white

14.84
#2E1664 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E1664 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1664
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1664#FFFFFF#000000##FFFFFF
##2E16641.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#1B2B3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1664;
/* rgb */ color: rgb(46, 22, 100);
/* oklch */ color: oklch(28.9% 0.127 290.1);
Tailwind
colors: {
  custom: {
    50: '#6d5691',
    500: '#2e1664',
    950: '#000000',
  },
}
SCSS
$custom: #2e1664;
$custom-light: #6d5691;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1664",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 100
  },
  "hsl": {
    "h": 258.462,
    "s": 63.934,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28915,
    "c": 0.12732,
    "h": 290.1
  },
  "luminance": 0.02075
}

Semantic roles & 50–950 ramp

primary
#2E1664
secondary
#7D9B3B
accent
#E741B4
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1664

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

Preview Lab → · Contrast checker → · Palette generator →

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