#2E1A96#2E1A96

#2E1A96 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.185 H 278.1°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#2E1A96
RGBrgb(46, 26, 150)
HSLhsl(250, 70%, 35%)
HSVhsv(250, 83%, 59%)
CMYKcmyk(69.3%, 82.7%, 0%, 41.2%)
CIE-LABlab(22.02, 45.70, -63.36)
CIE-LCHlch(22.02, 78.12, 305.80°)
OKLaboklab(34.83% 0.0261 -0.183)
OKLCHoklch(34.83% 0.185 278.1)
XYZxyz(6.9994, 3.5210, 29.1590)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A96 #82961A
analogous
#1A4496 #2E1A96 #6C1A96
triadic
#2E1A96 #962E1A #1A962E
tetradic
#2E1A96 #961A44 #82961A #1A966C
square
#2E1A96 #961A44 #82961A #1A966C
split-complementary
#2E1A96 #966C1A #44961A
monochromatic
#0E082E #1E1162 #2E1A96 #3E23CA #634BE0

Accessibility & contrast

On white

12.32
#2E1A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2E1A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A96
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A96#FFFFFF#000000##FFFFFF
##2E1A961.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1a96;
/* rgb */ color: rgb(46, 26, 150);
/* oklch */ color: oklch(34.8% 0.185 278.1);
Tailwind
colors: {
  custom: {
    50: '#775bb6',
    500: '#2e1a96',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a96;
$custom-light: #775bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a96",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 249.677,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34826,
    "c": 0.18488,
    "h": 278.1
  },
  "luminance": 0.03522
}

Semantic roles & 50–950 ramp

primary
#2E1A96
secondary
#AEC24A
accent
#ED3BD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1A96

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

Preview Lab → · Contrast checker → · Palette generator →

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