#2E1B96#2E1B96

#2E1B96 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.184 H 278.0°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2E1B96
RGBrgb(46, 27, 150)
HSLhsl(249, 69%, 35%)
HSVhsv(249, 82%, 59%)
CMYKcmyk(69.3%, 82%, 0%, 41.2%)
CIE-LABlab(22.18, 45.23, -63.09)
CIE-LCHlch(22.18, 77.63, 305.63°)
OKLaboklab(34.94% 0.0256 -0.1823)
OKLCHoklch(34.94% 0.184 278)
XYZxyz(7.0219, 3.5661, 29.1665)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B96 #83961B
analogous
#1B4696 #2E1B96 #6B1B96
triadic
#2E1B96 #962E1B #1B962E
tetradic
#2E1B96 #961B46 #83961B #1B966B
square
#2E1B96 #961B46 #83961B #1B966B
split-complementary
#2E1B96 #966B1B #46961B
monochromatic
#0E082E #1E1262 #2E1B96 #3E24CA #634DDF

Accessibility & contrast

On white

12.26
#2E1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2E1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B96
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B96#FFFFFF#000000##FFFFFF
##2E1B961.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e1b96;
/* rgb */ color: rgb(46, 27, 150);
/* oklch */ color: oklch(34.9% 0.184 278.0);
Tailwind
colors: {
  custom: {
    50: '#775cb6',
    500: '#2e1b96',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b96;
$custom-light: #775cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b96",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 249.268,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34938,
    "c": 0.18406,
    "h": 278
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#2E1B96
secondary
#AFC14C
accent
#EC3BD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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