#2E1558#2E1558

#2E1558 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.113 H 295.0°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#2E1558
RGBrgb(46, 21, 88)
HSLhsl(262, 61%, 21%)
HSVhsv(262, 76%, 35%)
CMYKcmyk(47.7%, 76.1%, 0%, 65.5%)
CIE-LABlab(14.52, 29.14, -35.82)
CIE-LCHlch(14.52, 46.18, 309.13°)
OKLaboklab(27.6% 0.0477 -0.1025)
OKLCHoklch(27.6% 0.113 295)
XYZxyz(3.1559, 1.8217, 9.4160)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1558 #3F5815
analogous
#151E58 #2E1558 #501558
triadic
#2E1558 #582E15 #15582E
tetradic
#2E1558 #58151E #3F5815 #155850
square
#2E1558 #58151E #3F5815 #155850
split-complementary
#2E1558 #585015 #1E5815
monochromatic
#0D0619 #140927 #2E1558 #482189 #622DBB

Accessibility & contrast

On white

15.39
#2E1558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E1558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1558
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1558#FFFFFF#000000##FFFFFF
##2E15581.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#222635
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1558;
/* rgb */ color: rgb(46, 21, 88);
/* oklch */ color: oklch(27.6% 0.113 295.0);
Tailwind
colors: {
  custom: {
    50: '#6b5588',
    500: '#2e1558',
    950: '#000000',
  },
}
SCSS
$custom: #2e1558;
$custom-light: #6b5588;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1558",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 262.388,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27602,
    "c": 0.11308,
    "h": 295
  },
  "luminance": 0.01822
}

Semantic roles & 50–950 ramp

primary
#2E1558
secondary
#6F9039
accent
#E543A8
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1558

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

Preview Lab → · Contrast checker → · Palette generator →

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