#2E1562#2E1562

#2E1562 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.126 H 291.1°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#2E1562
RGBrgb(46, 21, 98)
HSLhsl(259, 65%, 23%)
HSVhsv(259, 79%, 38%)
CMYKcmyk(53.1%, 78.6%, 0%, 61.6%)
CIE-LABlab(15.48, 32.20, -40.94)
CIE-LCHlch(15.48, 52.09, 308.19°)
OKLaboklab(28.58% 0.0453 -0.1175)
OKLCHoklch(28.58% 0.126 291.1)
XYZxyz(3.5989, 1.9989, 11.7491)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1562 #496215
analogous
#152262 #2E1562 #541562
triadic
#2E1562 #622E15 #15622E
tetradic
#2E1562 #621522 #496215 #156254
square
#2E1562 #621522 #496215 #156254
split-complementary
#2E1562 #625415 #226215
monochromatic
#0C0519 #160A30 #2E1562 #462094 #5D2BC7

Accessibility & contrast

On white

15.00
#2E1562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1562
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1562#FFFFFF#000000##FFFFFF
##2E15621.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002864
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#1C2A3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1562;
/* rgb */ color: rgb(46, 21, 98);
/* oklch */ color: oklch(28.6% 0.126 291.1);
Tailwind
colors: {
  custom: {
    50: '#6d558f',
    500: '#2e1562',
    950: '#000000',
  },
}
SCSS
$custom: #2e1562;
$custom-light: #6d558f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1562",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 259.481,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28577,
    "c": 0.12595,
    "h": 291.1
  },
  "luminance": 0.01999
}

Semantic roles & 50–950 ramp

primary
#2E1562
secondary
#7A993A
accent
#E840B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1562

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

Preview Lab → · Contrast checker → · Palette generator →

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