#2E1354#2E1354

#2E1354 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.111 H 297.4°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#2E1354
RGBrgb(46, 19, 84)
HSLhsl(265, 63%, 20%)
HSVhsv(265, 77%, 33%)
CMYKcmyk(45.2%, 77.4%, 0%, 67.1%)
CIE-LABlab(13.75, 29.07, -34.37)
CIE-LCHlch(13.75, 45.02, 310.23°)
OKLaboklab(26.94% 0.0508 -0.0982)
OKLCHoklch(26.94% 0.111 297.4)
XYZxyz(2.9594, 1.6866, 8.5554)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1354 #395413
analogous
#131854 #2E1354 #4E1354
triadic
#2E1354 #542E13 #13542E
tetradic
#2E1354 #541318 #395413 #13544E
square
#2E1354 #541318 #395413 #13544E
split-complementary
#2E1354 #544E13 #185413
monochromatic
#0E0619 #130822 #2E1354 #491E86 #652AB8

Accessibility & contrast

On white

15.70
#2E1354 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E1354 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1354
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1354#FFFFFF#000000##FFFFFF
##2E13541.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#242332
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1354;
/* rgb */ color: rgb(46, 19, 84);
/* oklch */ color: oklch(26.9% 0.111 297.4);
Tailwind
colors: {
  custom: {
    50: '#6b5385',
    500: '#2e1354',
    950: '#000000',
  },
}
SCSS
$custom: #2e1354;
$custom-light: #6b5385;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1354",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 84
  },
  "hsl": {
    "h": 264.923,
    "s": 63.107,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26937,
    "c": 0.11061,
    "h": 297.4
  },
  "luminance": 0.01687
}

Semantic roles & 50–950 ramp

primary
#2E1354
secondary
#698C36
accent
#E642A2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1354

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

Preview Lab → · Contrast checker → · Palette generator →

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