#2E1B58#2E1B58

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

Color values

HEX#2E1B58
RGBrgb(46, 27, 88)
HSLhsl(259, 53%, 23%)
HSVhsv(259, 69%, 35%)
CMYKcmyk(47.7%, 69.3%, 0%, 65.5%)
CIE-LABlab(15.85, 25.51, -33.66)
CIE-LCHlch(15.85, 42.24, 307.15°)
OKLaboklab(28.55% 0.0407 -0.0962)
OKLCHoklch(28.55% 0.104 292.9)
XYZxyz(3.2796, 2.0692, 9.4572)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B58 #45581B
analogous
#1B2658 #2E1B58 #4D1B58
triadic
#2E1B58 #582E1B #1B582E
tetradic
#2E1B58 #581B26 #45581B #1B584D
square
#2E1B58 #581B26 #45581B #1B584D
split-complementary
#2E1B58 #584D1B #26581B
monochromatic
#0C0717 #160D29 #2E1B58 #462987 #5F38B6

Accessibility & contrast

On white

14.85
#2E1B58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2E1B58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B58
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B58#FFFFFF#000000##FFFFFF
##2E1B581.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#222936
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1b58;
/* rgb */ color: rgb(46, 27, 88);
/* oklch */ color: oklch(28.6% 0.104 292.9);
Tailwind
colors: {
  custom: {
    50: '#6b5888',
    500: '#2e1b58',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b58;
$custom-light: #6b5888;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b58",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 88
  },
  "hsl": {
    "h": 258.689,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28552,
    "c": 0.10444,
    "h": 292.9
  },
  "luminance": 0.02069
}

Semantic roles & 50–950 ramp

primary
#2E1B58
secondary
#768E41
accent
#DC4BAF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1B58

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

Preview Lab → · Contrast checker → · Palette generator →

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