#2E1E96#2E1E96

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

Color values

HEX#2E1E96
RGBrgb(46, 30, 150)
HSLhsl(248, 67%, 35%)
HSVhsv(248, 80%, 59%)
CMYKcmyk(69.3%, 80%, 0%, 41.2%)
CIE-LABlab(22.69, 43.75, -62.25)
CIE-LCHlch(22.69, 76.09, 305.10°)
OKLaboklab(35.29% 0.0242 -0.1799)
OKLCHoklch(35.29% 0.181 277.7)
XYZxyz(7.0942, 3.7108, 29.1906)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E96 #86961E
analogous
#1E4A96 #2E1E96 #6A1E96
triadic
#2E1E96 #962E1E #1E962E
tetradic
#2E1E96 #961E4A #86961E #1E966A
square
#2E1E96 #961E4A #86961E #1E966A
split-complementary
#2E1E96 #966A1E #4A961E
monochromatic
#0F0A30 #1E1463 #2E1E96 #3E28C9 #6452DC

Accessibility & contrast

On white

12.05
#2E1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2E1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E96
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E96#FFFFFF#000000##FFFFFF
##2E1E961.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e1e96;
/* rgb */ color: rgb(46, 30, 150);
/* oklch */ color: oklch(35.3% 0.181 277.7);
Tailwind
colors: {
  custom: {
    50: '#775db6',
    500: '#2e1e96',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e96;
$custom-light: #775db6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e96",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 248,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35292,
    "c": 0.18148,
    "h": 277.7
  },
  "luminance": 0.03711
}

Semantic roles & 50–950 ramp

primary
#2E1E96
secondary
#B1BF50
accent
#EA3ED3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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