#2E1B9A#2E1B9A

#2E1B9A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.189 H 277.4°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2E1B9A
RGBrgb(46, 27, 154)
HSLhsl(249, 70%, 35%)
HSVhsv(249, 82%, 60%)
CMYKcmyk(70.1%, 82.5%, 0%, 39.6%)
CIE-LABlab(22.64, 46.45, -64.79)
CIE-LCHlch(22.64, 79.72, 305.64°)
OKLaboklab(35.39% 0.0244 -0.1872)
OKLCHoklch(35.39% 0.189 277.4)
XYZxyz(7.3495, 3.6971, 30.8919)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B9A #879A1B
analogous
#1B489A #2E1B9A #6D1B9A
triadic
#2E1B9A #9A2E1B #1B9A2E
tetradic
#2E1B9A #9A1B48 #879A1B #1B9A6D
square
#2E1B9A #9A1B48 #879A1B #1B9A6D
split-complementary
#2E1B9A #9A6D1B #489A1B
monochromatic
#0F0932 #1E1266 #2E1B9A #3E24CE #654FE0

Accessibility & contrast

On white

12.07
#2E1B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2E1B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B9A
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B9A#FFFFFF#000000##FFFFFF
##2E1B9A1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1b9a;
/* rgb */ color: rgb(46, 27, 154);
/* oklch */ color: oklch(35.4% 0.189 277.4);
Tailwind
colors: {
  custom: {
    50: '#785cb9',
    500: '#2e1b9a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b9a;
$custom-light: #785cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b9a",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 154
  },
  "hsl": {
    "h": 248.976,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35393,
    "c": 0.18879,
    "h": 277.4
  },
  "luminance": 0.03698
}

Semantic roles & 50–950 ramp

primary
#2E1B9A
secondary
#B1C34E
accent
#ED3BD2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2E1B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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