#2E1B60#2E1B60

#2E1B60 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.3% C 0.116 H 290.0°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#2E1B60
RGBrgb(46, 27, 96)
HSLhsl(257, 56%, 24%)
HSVhsv(257, 72%, 38%)
CMYKcmyk(52.1%, 71.9%, 0%, 62.4%)
CIE-LABlab(16.55, 28.08, -37.87)
CIE-LCHlch(16.55, 47.14, 306.56°)
OKLaboklab(29.28% 0.0396 -0.1085)
OKLCHoklch(29.28% 0.116 290)
XYZxyz(3.6294, 2.2091, 11.2992)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B60 #4D601B
analogous
#1B2B60 #2E1B60 #511B60
triadic
#2E1B60 #602E1B #1B602E
tetradic
#2E1B60 #601B2B #4D601B #1B6051
square
#2E1B60 #601B2B #4D601B #1B6051
split-complementary
#2E1B60 #60511B #2B601B
monochromatic
#0B0718 #170E30 #2E1B60 #452890 #5C36C0

Accessibility & contrast

On white

14.57
#2E1B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E1B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B60
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B60#FFFFFF#000000##FFFFFF
##2E1B601.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#00275F
Tritanopia (blue-blind)
#1D2C3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1b60;
/* rgb */ color: rgb(46, 27, 96);
/* oklch */ color: oklch(29.3% 0.116 290.0);
Tailwind
colors: {
  custom: {
    50: '#6c598e',
    500: '#2e1b60',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b60;
$custom-light: #6c598e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b60",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 256.522,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29278,
    "c": 0.11554,
    "h": 290
  },
  "luminance": 0.02209
}

Semantic roles & 50–950 ramp

primary
#2E1B60
secondary
#7E9641
accent
#DF48B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1B60

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

Preview Lab → · Contrast checker → · Palette generator →

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