#2E1366#2E1366

#2E1366 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.133 H 290.1°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#2E1366
RGBrgb(46, 19, 102)
HSLhsl(260, 69%, 24%)
HSVhsv(260, 81%, 40%)
CMYKcmyk(54.9%, 81.4%, 0%, 60%)
CIE-LABlab(15.52, 34.48, -43.52)
CIE-LCHlch(15.52, 55.52, 308.38°)
OKLaboklab(28.73% 0.0459 -0.1251)
OKLCHoklch(28.73% 0.133 290.1)
XYZxyz(3.7572, 2.0057, 12.7570)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1366 #4B6613
analogous
#132166 #2E1366 #571366
triadic
#2E1366 #662E13 #13662E
tetradic
#2E1366 #661321 #4B6613 #136657
square
#2E1366 #661321 #4B6613 #136657
split-complementary
#2E1366 #665713 #216613
monochromatic
#0C051A #170932 #2E1366 #451D9A #5D26CD

Accessibility & contrast

On white

14.99
#2E1366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2E1366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1366
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1366#FFFFFF#000000##FFFFFF
##2E13661.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#1A2A3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1366;
/* rgb */ color: rgb(46, 19, 102);
/* oklch */ color: oklch(28.7% 0.133 290.1);
Tailwind
colors: {
  custom: {
    50: '#6e5492',
    500: '#2e1366',
    950: '#000000',
  },
}
SCSS
$custom: #2e1366;
$custom-light: #6e5492;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1366",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 102
  },
  "hsl": {
    "h": 259.518,
    "s": 68.595,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28726,
    "c": 0.13324,
    "h": 290.1
  },
  "luminance": 0.02006
}

Semantic roles & 50–950 ramp

primary
#2E1366
secondary
#7C9D37
accent
#EB3CB2
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1366

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

Preview Lab → · Contrast checker → · Palette generator →

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