#2E1364#2E1364

#2E1364 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.131 H 290.8°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#2E1364
RGBrgb(46, 19, 100)
HSLhsl(260, 68%, 23%)
HSVhsv(260, 81%, 39%)
CMYKcmyk(54%, 81%, 0%, 60.8%)
CIE-LABlab(15.31, 33.87, -42.54)
CIE-LCHlch(15.31, 54.38, 308.53°)
OKLaboklab(28.52% 0.0465 -0.1222)
OKLCHoklch(28.52% 0.131 290.8)
XYZxyz(3.6592, 1.9665, 12.2409)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1364 #496413
analogous
#132064 #2E1364 #561364
triadic
#2E1364 #642E13 #13642E
tetradic
#2E1364 #641320 #496413 #136456
square
#2E1364 #641320 #496413 #136456
split-complementary
#2E1364 #645613 #206413
monochromatic
#0C051A #160931 #2E1364 #461D97 #5D27CB

Accessibility & contrast

On white

15.07
#2E1364 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E1364 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1364
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1364#FFFFFF#000000##FFFFFF
##2E13641.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#1B2A3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1364;
/* rgb */ color: rgb(46, 19, 100);
/* oklch */ color: oklch(28.5% 0.131 290.8);
Tailwind
colors: {
  custom: {
    50: '#6e5491',
    500: '#2e1364',
    950: '#000000',
  },
}
SCSS
$custom: #2e1364;
$custom-light: #6e5491;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1364",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 100
  },
  "hsl": {
    "h": 260,
    "s": 68.067,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28519,
    "c": 0.13077,
    "h": 290.8
  },
  "luminance": 0.01967
}

Semantic roles & 50–950 ramp

primary
#2E1364
secondary
#7A9C37
accent
#EB3DB1
background
#F6F5F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1364

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

Preview Lab → · Contrast checker → · Palette generator →

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