#2E1B48#2E1B48

#2E1B48 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.081 H 300.6°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#2E1B48
RGBrgb(46, 27, 72)
HSLhsl(265, 45%, 19%)
HSVhsv(265, 63%, 28%)
CMYKcmyk(36.1%, 62.5%, 0%, 71.8%)
CIE-LABlab(14.58, 20.51, -24.80)
CIE-LCHlch(14.58, 32.18, 309.60°)
OKLaboklab(27.23% 0.0414 -0.0701)
OKLCHoklch(27.23% 0.081 300.6)
XYZxyz(2.6881, 1.8326, 6.3417)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B48 #35481B
analogous
#1B1F48 #2E1B48 #451B48
triadic
#2E1B48 #482E1B #1B482E
tetradic
#2E1B48 #481B1F #35481B #1B4845
square
#2E1B48 #481B1F #35481B #1B4845
split-complementary
#2E1B48 #48451B #1F481B
monochromatic
#0E0816 #120A1B #2E1B48 #4A2C75 #673CA1

Accessibility & contrast

On white

15.37
#2E1B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1B48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B48
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B48#FFFFFF#000000##FFFFFF
##2E1B481.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082549
Deuteranopia (green-blind)
#0F2547
Tritanopia (blue-blind)
#29242E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1b48;
/* rgb */ color: rgb(46, 27, 72);
/* oklch */ color: oklch(27.2% 0.081 300.6);
Tailwind
colors: {
  custom: {
    50: '#69587b',
    500: '#2e1b48',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b48;
$custom-light: #69587b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b48",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 72
  },
  "hsl": {
    "h": 265.333,
    "s": 45.455,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27228,
    "c": 0.08146,
    "h": 300.6
  },
  "luminance": 0.01833
}

Semantic roles & 50–950 ramp

primary
#2E1B48
secondary
#647E41
accent
#D5539E
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1B48

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

Preview Lab → · Contrast checker → · Palette generator →

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