#2E1A93#2E1A93

#2E1A93 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.5% C 0.181 H 278.6°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2E1A93
RGBrgb(46, 26, 147)
HSLhsl(250, 70%, 34%)
HSVhsv(250, 82%, 58%)
CMYKcmyk(68.7%, 82.3%, 0%, 42.4%)
CIE-LABlab(21.67, 44.78, -62.08)
CIE-LCHlch(21.67, 76.55, 305.81°)
OKLaboklab(34.49% 0.027 -0.1793)
OKLCHoklch(34.49% 0.181 278.6)
XYZxyz(6.7609, 3.4256, 27.9030)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A93 #7F931A
analogous
#1A4393 #2E1A93 #6B1A93
triadic
#2E1A93 #932E1A #1A932E
tetradic
#2E1A93 #931A43 #7F931A #1A936B
square
#2E1A93 #931A43 #7F931A #1A936B
split-complementary
#2E1A93 #936B1A #43931A
monochromatic
#0D082B #1E115F #2E1A93 #3E23C7 #6149DF

Accessibility & contrast

On white

12.46
#2E1A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1A93
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A93#FFFFFF#000000##FFFFFF
##2E1A931.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1a93;
/* rgb */ color: rgb(46, 26, 147);
/* oklch */ color: oklch(34.5% 0.181 278.6);
Tailwind
colors: {
  custom: {
    50: '#775bb4',
    500: '#2e1a93',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a93;
$custom-light: #775bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a93",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 147
  },
  "hsl": {
    "h": 249.917,
    "s": 69.942,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34485,
    "c": 0.18133,
    "h": 278.6
  },
  "luminance": 0.03426
}

Semantic roles & 50–950 ramp

primary
#2E1A93
secondary
#ADC048
accent
#ED3BCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1A93

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

Preview Lab → · Contrast checker → · Palette generator →

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