#2E1B59#2E1B59

#2E1B59 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.106 H 292.5°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#2E1B59
RGBrgb(46, 27, 89)
HSLhsl(258, 53%, 23%)
HSVhsv(258, 70%, 35%)
CMYKcmyk(48.3%, 69.7%, 0%, 65.1%)
CIE-LABlab(15.93, 25.83, -34.20)
CIE-LCHlch(15.93, 42.86, 307.06°)
OKLaboklab(28.64% 0.0406 -0.0978)
OKLCHoklch(28.64% 0.106 292.5)
XYZxyz(3.3213, 2.0859, 9.6769)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B59 #46591B
analogous
#1B2759 #2E1B59 #4D1B59
triadic
#2E1B59 #592E1B #1B592E
tetradic
#2E1B59 #591B27 #46591B #1B594D
square
#2E1B59 #591B27 #46591B #1B594D
split-complementary
#2E1B59 #594D1B #27591B
monochromatic
#0C0717 #160D2A #2E1B59 #462988 #5F37B7

Accessibility & contrast

On white

14.82
#2E1B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1B59
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B59#FFFFFF#000000##FFFFFF
##2E1B591.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#002658
Tritanopia (blue-blind)
#222A37
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1b59;
/* rgb */ color: rgb(46, 27, 89);
/* oklch */ color: oklch(28.6% 0.106 292.5);
Tailwind
colors: {
  custom: {
    50: '#6b5888',
    500: '#2e1b59',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b59;
$custom-light: #6b5888;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b59",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 258.387,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2864,
    "c": 0.10584,
    "h": 292.5
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#2E1B59
secondary
#778F41
accent
#DD4BB0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1B59

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

Preview Lab → · Contrast checker → · Palette generator →

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