#2E1B9B#2E1B9B

#2E1B9B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.190 H 277.3°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2E1B9B
RGBrgb(46, 27, 155)
HSLhsl(249, 70%, 36%)
HSVhsv(249, 83%, 61%)
CMYKcmyk(70.3%, 82.6%, 0%, 39.2%)
CIE-LABlab(22.76, 46.75, -65.21)
CIE-LCHlch(22.76, 80.24, 305.64°)
OKLaboklab(35.51% 0.0241 -0.1884)
OKLCHoklch(35.51% 0.19 277.3)
XYZxyz(7.4331, 3.7306, 31.3323)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B9B #889B1B
analogous
#1B489B #2E1B9B #6E1B9B
triadic
#2E1B9B #9B2E1B #1B9B2E
tetradic
#2E1B9B #9B1B48 #889B1B #1B9B6E
square
#2E1B9B #9B1B48 #889B1B #1B9B6E
split-complementary
#2E1B9B #9B6E1B #489B1B
monochromatic
#0F0933 #1F1267 #2E1B9B #3D24CF #6550E0

Accessibility & contrast

On white

12.03
#2E1B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E1B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B9B
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B9B#FFFFFF#000000##FFFFFF
##2E1B9B1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e1b9b;
/* rgb */ color: rgb(46, 27, 155);
/* oklch */ color: oklch(35.5% 0.190 277.3);
Tailwind
colors: {
  custom: {
    50: '#785cba',
    500: '#2e1b9b',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b9b;
$custom-light: #785cba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b9b",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 248.906,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35508,
    "c": 0.18997,
    "h": 277.3
  },
  "luminance": 0.03731
}

Semantic roles & 50–950 ramp

primary
#2E1B9B
secondary
#B2C34F
accent
#ED3BD3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2E1B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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