#2E1563#2E1563

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

Color values

HEX#2E1563
RGBrgb(46, 21, 99)
HSLhsl(259, 65%, 24%)
HSVhsv(259, 79%, 39%)
CMYKcmyk(53.5%, 78.8%, 0%, 61.2%)
CIE-LABlab(15.58, 32.51, -41.44)
CIE-LCHlch(15.58, 52.67, 308.12°)
OKLaboklab(28.68% 0.045 -0.119)
OKLCHoklch(28.68% 0.127 290.7)
XYZxyz(3.6464, 2.0179, 11.9993)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1563 #4A6315
analogous
#152363 #2E1563 #551563
triadic
#2E1563 #632E15 #15632E
tetradic
#2E1563 #631523 #4A6315 #156355
square
#2E1563 #631523 #4A6315 #156355
split-complementary
#2E1563 #635515 #236315
monochromatic
#0C0519 #170A31 #2E1563 #452095 #5D2AC8

Accessibility & contrast

On white

14.96
#2E1563 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1563
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1563#FFFFFF#000000##FFFFFF
##2E15631.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002865
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#1C2A3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1563;
/* rgb */ color: rgb(46, 21, 99);
/* oklch */ color: oklch(28.7% 0.127 290.7);
Tailwind
colors: {
  custom: {
    50: '#6d5590',
    500: '#2e1563',
    950: '#000000',
  },
}
SCSS
$custom: #2e1563;
$custom-light: #6d5590;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1563",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 99
  },
  "hsl": {
    "h": 259.231,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28678,
    "c": 0.12723,
    "h": 290.7
  },
  "luminance": 0.02018
}

Semantic roles & 50–950 ramp

primary
#2E1563
secondary
#7B9A3A
accent
#E840B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #2E1563

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

Preview Lab → · Contrast checker → · Palette generator →

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