#2E1A9B#2E1A9B

#2E1A9B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.191 H 277.4°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2E1A9B
RGBrgb(46, 26, 155)
HSLhsl(249, 71%, 35%)
HSVhsv(249, 83%, 61%)
CMYKcmyk(70.3%, 83.2%, 0%, 39.2%)
CIE-LABlab(22.60, 47.21, -65.47)
CIE-LCHlch(22.60, 80.72, 305.79°)
OKLaboklab(35.4% 0.0245 -0.1892)
OKLCHoklch(35.4% 0.191 277.4)
XYZxyz(7.4106, 3.6855, 31.3248)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A9B #879B1A
analogous
#1A479B #2E1A9B #6E1A9B
triadic
#2E1A9B #9B2E1A #1A9B2E
tetradic
#2E1A9B #9B1A47 #879B1A #1A9B6E
square
#2E1A9B #9B1A47 #879B1A #1A9B6E
split-complementary
#2E1A9B #9B6E1A #479B1A
monochromatic
#0F0832 #1E1167 #2E1A9B #3E23CF #654EE1

Accessibility & contrast

On white

12.09
#2E1A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1A9B
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A9B#FFFFFF#000000##FFFFFF
##2E1A9B1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e1a9b;
/* rgb */ color: rgb(46, 26, 155);
/* oklch */ color: oklch(35.4% 0.191 277.4);
Tailwind
colors: {
  custom: {
    50: '#785cba',
    500: '#2e1a9b',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a9b;
$custom-light: #785cba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a9b",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 249.302,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35399,
    "c": 0.19074,
    "h": 277.4
  },
  "luminance": 0.03686
}

Semantic roles & 50–950 ramp

primary
#2E1A9B
secondary
#B1C44D
accent
#EE3AD2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2E1A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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