#2E1654#2E1654

#2E1654 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.106 H 296.4°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#2E1654
RGBrgb(46, 22, 84)
HSLhsl(263, 58%, 21%)
HSVhsv(263, 74%, 33%)
CMYKcmyk(45.2%, 73.8%, 0%, 67.1%)
CIE-LABlab(14.37, 27.34, -33.36)
CIE-LCHlch(14.37, 43.13, 309.34°)
OKLaboklab(27.38% 0.0474 -0.0953)
OKLCHoklch(27.38% 0.106 296.4)
XYZxyz(3.0134, 1.7947, 8.5734)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1654 #3C5416
analogous
#161D54 #2E1654 #4D1654
triadic
#2E1654 #542E16 #16542E
tetradic
#2E1654 #54161D #3C5416 #16544D
square
#2E1654 #54161D #3C5416 #16544D
split-complementary
#2E1654 #544D16 #1D5416
monochromatic
#0D0618 #130924 #2E1654 #492384 #632FB5

Accessibility & contrast

On white

15.45
#2E1654 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E1654 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1654
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1654#FFFFFF#000000##FFFFFF
##2E16541.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#242533
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1654;
/* rgb */ color: rgb(46, 22, 84);
/* oklch */ color: oklch(27.4% 0.106 296.4);
Tailwind
colors: {
  custom: {
    50: '#6b5585',
    500: '#2e1654',
    950: '#000000',
  },
}
SCSS
$custom: #2e1654;
$custom-light: #6b5585;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1654",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 84
  },
  "hsl": {
    "h": 263.226,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27381,
    "c": 0.1064,
    "h": 296.4
  },
  "luminance": 0.01795
}

Semantic roles & 50–950 ramp

primary
#2E1654
secondary
#6C8B3A
accent
#E246A5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1654

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

Preview Lab → · Contrast checker → · Palette generator →

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