#2E1B99#2E1B99

#2E1B99 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.188 H 277.6°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#2E1B99
RGBrgb(46, 27, 153)
HSLhsl(249, 70%, 35%)
HSVhsv(249, 82%, 60%)
CMYKcmyk(69.9%, 82.4%, 0%, 40%)
CIE-LABlab(22.53, 46.14, -64.37)
CIE-LCHlch(22.53, 79.20, 305.63°)
OKLaboklab(35.28% 0.0247 -0.186)
OKLCHoklch(35.28% 0.188 277.6)
XYZxyz(7.2666, 3.6640, 30.4551)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B99 #86991B
analogous
#1B4799 #2E1B99 #6D1B99
triadic
#2E1B99 #992E1B #1B992E
tetradic
#2E1B99 #991B47 #86991B #1B996D
square
#2E1B99 #991B47 #86991B #1B996D
split-complementary
#2E1B99 #996D1B #47991B
monochromatic
#0F0931 #1E1265 #2E1B99 #3E24CD #644FE0

Accessibility & contrast

On white

12.12
#2E1B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E1B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B99
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B99#FFFFFF#000000##FFFFFF
##2E1B991.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003097
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e1b99;
/* rgb */ color: rgb(46, 27, 153);
/* oklch */ color: oklch(35.3% 0.188 277.6);
Tailwind
colors: {
  custom: {
    50: '#785cb8',
    500: '#2e1b99',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b99;
$custom-light: #785cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b99",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 153
  },
  "hsl": {
    "h": 249.048,
    "s": 70,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35279,
    "c": 0.18761,
    "h": 277.6
  },
  "luminance": 0.03665
}

Semantic roles & 50–950 ramp

primary
#2E1B99
secondary
#B1C24E
accent
#ED3BD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2E1B99

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

Preview Lab → · Contrast checker → · Palette generator →

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