#2E1454#2E1454

#2E1454 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.109 H 297.1°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#2E1454
RGBrgb(46, 20, 84)
HSLhsl(264, 62%, 20%)
HSVhsv(264, 76%, 33%)
CMYKcmyk(45.2%, 76.2%, 0%, 67.1%)
CIE-LABlab(13.95, 28.51, -34.04)
CIE-LCHlch(13.95, 44.40, 309.94°)
OKLaboklab(27.08% 0.0497 -0.0973)
OKLCHoklch(27.08% 0.109 297.1)
XYZxyz(2.9767, 1.7212, 8.5612)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1454 #3A5414
analogous
#141A54 #2E1454 #4E1454
triadic
#2E1454 #542E14 #14542E
tetradic
#2E1454 #54141A #3A5414 #14544E
square
#2E1454 #54141A #3A5414 #14544E
split-complementary
#2E1454 #544E14 #1A5414
monochromatic
#0E0619 #130823 #2E1454 #492085 #642CB7

Accessibility & contrast

On white

15.62
#2E1454 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1454
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1454#FFFFFF#000000##FFFFFF
##2E14541.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#242432
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1454;
/* rgb */ color: rgb(46, 20, 84);
/* oklch */ color: oklch(27.1% 0.109 297.1);
Tailwind
colors: {
  custom: {
    50: '#6b5485',
    500: '#2e1454',
    950: '#000000',
  },
}
SCSS
$custom: #2e1454;
$custom-light: #6b5485;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1454",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 84
  },
  "hsl": {
    "h": 264.375,
    "s": 61.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.2708,
    "c": 0.10924,
    "h": 297.1
  },
  "luminance": 0.01721
}

Semantic roles & 50–950 ramp

primary
#2E1454
secondary
#6A8C38
accent
#E543A3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1454

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

Preview Lab → · Contrast checker → · Palette generator →

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