#2E1154#2E1154

#2E1154 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.113 H 297.9°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#2E1154
RGBrgb(46, 17, 84)
HSLhsl(266, 66%, 20%)
HSVhsv(266, 80%, 33%)
CMYKcmyk(45.2%, 79.8%, 0%, 67.1%)
CIE-LABlab(13.36, 30.16, -35.00)
CIE-LCHlch(13.36, 46.20, 310.75°)
OKLaboklab(26.66% 0.053 -0.1001)
OKLCHoklch(26.66% 0.113 297.9)
XYZxyz(2.9270, 1.6218, 8.5446)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1154 #375411
analogous
#111654 #2E1154 #501154
triadic
#2E1154 #542E11 #11542E
tetradic
#2E1154 #541116 #375411 #115450
square
#2E1154 #541116 #375411 #115450
split-complementary
#2E1154 #545011 #165411
monochromatic
#0E0519 #120721 #2E1154 #4A1B87 #6626BA

Accessibility & contrast

On white

15.86
#2E1154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E1154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1154
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1154#FFFFFF#000000##FFFFFF
##2E11541.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#242231
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1154;
/* rgb */ color: rgb(46, 17, 84);
/* oklch */ color: oklch(26.7% 0.113 297.9);
Tailwind
colors: {
  custom: {
    50: '#6b5285',
    500: '#2e1154',
    950: '#000000',
  },
}
SCSS
$custom: #2e1154;
$custom-light: #6b5285;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1154",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 265.97,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26663,
    "c": 0.11325,
    "h": 297.9
  },
  "luminance": 0.01622
}

Semantic roles & 50–950 ramp

primary
#2E1154
secondary
#668D34
accent
#E93F9F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1154

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

Preview Lab → · Contrast checker → · Palette generator →

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