#2E1B5F#2E1B5F

#2E1B5F is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.114 H 290.4°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#2E1B5F
RGBrgb(46, 27, 95)
HSLhsl(257, 56%, 24%)
HSVhsv(257, 72%, 37%)
CMYKcmyk(51.6%, 71.6%, 0%, 62.7%)
CIE-LABlab(16.46, 27.75, -37.35)
CIE-LCHlch(16.46, 46.53, 306.62°)
OKLaboklab(29.19% 0.0397 -0.107)
OKLCHoklch(29.19% 0.114 290.4)
XYZxyz(3.5836, 2.1908, 11.0583)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B5F #4C5F1B
analogous
#1B2A5F #2E1B5F #501B5F
triadic
#2E1B5F #5F2E1B #1B5F2E
tetradic
#2E1B5F #5F1B2A #4C5F1B #1B5F50
square
#2E1B5F #5F1B2A #4C5F1B #1B5F50
split-complementary
#2E1B5F #5F501B #2A5F1B
monochromatic
#0C0718 #170D2F #2E1B5F #45298F #5C36BE

Accessibility & contrast

On white

14.60
#2E1B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1B5F
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B5F#FFFFFF#000000##FFFFFF
##2E1B5F1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#1E2C3A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1b5f;
/* rgb */ color: rgb(46, 27, 95);
/* oklch */ color: oklch(29.2% 0.114 290.4);
Tailwind
colors: {
  custom: {
    50: '#6c598d',
    500: '#2e1b5f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b5f;
$custom-light: #6c598d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b5f",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 95
  },
  "hsl": {
    "h": 256.765,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29185,
    "c": 0.11417,
    "h": 290.4
  },
  "luminance": 0.02191
}

Semantic roles & 50–950 ramp

primary
#2E1B5F
secondary
#7D9541
accent
#DF49B5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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