#2E1B94#2E1B94

#2E1B94 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.182 H 278.3°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2E1B94
RGBrgb(46, 27, 148)
HSLhsl(249, 69%, 34%)
HSVhsv(249, 82%, 58%)
CMYKcmyk(68.9%, 81.8%, 0%, 42%)
CIE-LABlab(21.95, 44.61, -62.24)
CIE-LCHlch(21.95, 76.58, 305.63°)
OKLaboklab(34.71% 0.0262 -0.1798)
OKLCHoklch(34.71% 0.182 278.3)
XYZxyz(6.8622, 3.5022, 28.3256)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B94 #81941B
analogous
#1B4594 #2E1B94 #6A1B94
triadic
#2E1B94 #942E1B #1B942E
tetradic
#2E1B94 #941B45 #81941B #1B946A
square
#2E1B94 #941B45 #81941B #1B946A
split-complementary
#2E1B94 #946A1B #45941B
monochromatic
#0E082C #1E1260 #2E1B94 #3E24C8 #624BDE

Accessibility & contrast

On white

12.35
#2E1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1B94
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B94#FFFFFF#000000##FFFFFF
##2E1B941.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e1b94;
/* rgb */ color: rgb(46, 27, 148);
/* oklch */ color: oklch(34.7% 0.182 278.3);
Tailwind
colors: {
  custom: {
    50: '#775cb5',
    500: '#2e1b94',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b94;
$custom-light: #775cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b94",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 249.421,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34712,
    "c": 0.18168,
    "h": 278.3
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#2E1B94
secondary
#AEC04B
accent
#EC3CD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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