#2E1BA1#2E1BA1

#2E1BA1 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.2% C 0.197 H 276.5°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#2E1BA1
RGBrgb(46, 27, 161)
HSLhsl(249, 71%, 37%)
HSVhsv(249, 83%, 63%)
CMYKcmyk(71.4%, 83.2%, 0%, 36.9%)
CIE-LABlab(23.46, 48.56, -67.72)
CIE-LCHlch(23.46, 83.33, 305.65°)
OKLaboklab(36.2% 0.0223 -0.1957)
OKLCHoklch(36.2% 0.197 276.5)
XYZxyz(7.9496, 3.9372, 34.0523)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1BA1 #8EA11B
analogous
#1B4BA1 #2E1BA1 #711BA1
triadic
#2E1BA1 #A12E1B #1BA12E
tetradic
#2E1BA1 #A11B4B #8EA11B #1BA171
square
#2E1BA1 #A11B4B #8EA11B #1BA171
split-complementary
#2E1BA1 #A1711B #4BA11B
monochromatic
#100938 #1F126D #2E1BA1 #3D24D5 #6854E2

Accessibility & contrast

On white

11.75
#2E1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2E1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1BA1
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1BA1#FFFFFF#000000##FFFFFF
##2E1BA11.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00329F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e1ba1;
/* rgb */ color: rgb(46, 27, 161);
/* oklch */ color: oklch(36.2% 0.197 276.5);
Tailwind
colors: {
  custom: {
    50: '#7a5dbe',
    500: '#2e1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #2e1ba1;
$custom-light: #7a5dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1ba1",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 248.507,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36197,
    "c": 0.19697,
    "h": 276.5
  },
  "luminance": 0.03938
}

Semantic roles & 50–950 ramp

primary
#2E1BA1
secondary
#B5C552
accent
#EE3AD4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2E1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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