#2E1567#2E1567

#2E1567 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.132 H 289.4°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#2E1567
RGBrgb(46, 21, 103)
HSLhsl(258, 66%, 24%)
HSVhsv(258, 80%, 40%)
CMYKcmyk(55.3%, 79.6%, 0%, 59.6%)
CIE-LABlab(15.98, 33.74, -43.42)
CIE-LCHlch(15.98, 54.98, 307.85°)
OKLaboklab(29.09% 0.0439 -0.1248)
OKLCHoklch(29.09% 0.132 289.4)
XYZxyz(3.8423, 2.0963, 13.0315)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1567 #4E6715
analogous
#152567 #2E1567 #571567
triadic
#2E1567 #672E15 #15672E
tetradic
#2E1567 #671525 #4E6715 #156757
square
#2E1567 #671525 #4E6715 #156757
split-complementary
#2E1567 #675715 #256715
monochromatic
#0B0519 #170B34 #2E1567 #451F9A #5B2ACD

Accessibility & contrast

On white

14.80
#2E1567 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E1567 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1567
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1567#FFFFFF#000000##FFFFFF
##2E15671.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#192C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1567;
/* rgb */ color: rgb(46, 21, 103);
/* oklch */ color: oklch(29.1% 0.132 289.4);
Tailwind
colors: {
  custom: {
    50: '#6e5593',
    500: '#2e1567',
    950: '#000000',
  },
}
SCSS
$custom: #2e1567;
$custom-light: #6e5593;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1567",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 103
  },
  "hsl": {
    "h": 258.293,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29085,
    "c": 0.13228,
    "h": 289.4
  },
  "luminance": 0.02096
}

Semantic roles & 50–950 ramp

primary
#2E1567
secondary
#7F9E3A
accent
#E93FB5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1567

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

Preview Lab → · Contrast checker → · Palette generator →

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