#2E1B93#2E1B93

#2E1B93 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.180 H 278.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2E1B93
RGBrgb(46, 27, 147)
HSLhsl(250, 69%, 34%)
HSVhsv(250, 82%, 58%)
CMYKcmyk(68.7%, 81.6%, 0%, 42.4%)
CIE-LABlab(21.84, 44.30, -61.81)
CIE-LCHlch(21.84, 76.05, 305.63°)
OKLaboklab(34.6% 0.0265 -0.1785)
OKLCHoklch(34.6% 0.18 278.5)
XYZxyz(6.7834, 3.4707, 27.9105)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B93 #80931B
analogous
#1B4493 #2E1B93 #6A1B93
triadic
#2E1B93 #932E1B #1B932E
tetradic
#2E1B93 #931B44 #80931B #1B936A
square
#2E1B93 #931B44 #80931B #1B936A
split-complementary
#2E1B93 #936A1B #44931B
monochromatic
#0E082C #1E125F #2E1B93 #3E24C7 #624BDE

Accessibility & contrast

On white

12.40
#2E1B93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E1B93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B93
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B93#FFFFFF#000000##FFFFFF
##2E1B931.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1b93;
/* rgb */ color: rgb(46, 27, 147);
/* oklch */ color: oklch(34.6% 0.180 278.5);
Tailwind
colors: {
  custom: {
    50: '#775bb4',
    500: '#2e1b93',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b93;
$custom-light: #775bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b93",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 147
  },
  "hsl": {
    "h": 249.5,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34599,
    "c": 0.18049,
    "h": 278.5
  },
  "luminance": 0.03471
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1B93

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

Preview Lab → · Contrast checker → · Palette generator →

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