#2E1A97#2E1A97

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

Color values

HEX#2E1A97
RGBrgb(46, 26, 151)
HSLhsl(250, 71%, 35%)
HSVhsv(250, 83%, 59%)
CMYKcmyk(69.5%, 82.8%, 0%, 40.8%)
CIE-LABlab(22.14, 46.00, -63.79)
CIE-LCHlch(22.14, 78.64, 305.80°)
OKLaboklab(34.94% 0.0258 -0.1843)
OKLCHoklch(34.94% 0.186 278)
XYZxyz(7.0802, 3.5534, 29.5849)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A97 #83971A
analogous
#1A4597 #2E1A97 #6D1A97
triadic
#2E1A97 #972E1A #1A972E
tetradic
#2E1A97 #971A45 #83971A #1A976D
square
#2E1A97 #971A45 #83971A #1A976D
split-complementary
#2E1A97 #976D1A #45971A
monochromatic
#0E082F #1E1163 #2E1A97 #3E23CB #634BE0

Accessibility & contrast

On white

12.27
#2E1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1A97
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A97#FFFFFF#000000##FFFFFF
##2E1A971.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e1a97;
/* rgb */ color: rgb(46, 26, 151);
/* oklch */ color: oklch(34.9% 0.186 278.0);
Tailwind
colors: {
  custom: {
    50: '#775bb7',
    500: '#2e1a97',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a97;
$custom-light: #775bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a97",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 249.6,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34941,
    "c": 0.18606,
    "h": 278
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#2E1A97
secondary
#AFC24B
accent
#ED3AD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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