#2E1E8D#2E1E8D

#2E1E8D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.170 H 279.0°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#2E1E8D
RGBrgb(46, 30, 141)
HSLhsl(249, 65%, 34%)
HSVhsv(249, 79%, 55%)
CMYKcmyk(67.4%, 78.7%, 0%, 44.7%)
CIE-LABlab(21.70, 40.90, -58.32)
CIE-LCHlch(21.70, 71.23, 305.04°)
OKLaboklab(34.3% 0.0266 -0.1684)
OKLCHoklch(34.3% 0.17 279)
XYZxyz(6.3972, 3.4319, 25.5195)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E8D #7D8D1E
analogous
#1E458D #2E1E8D #651E8D
triadic
#2E1E8D #8D2E1E #1E8D2E
tetradic
#2E1E8D #8D1E45 #7D8D1E #1E8D65
square
#2E1E8D #8D1E45 #7D8D1E #1E8D65
split-complementary
#2E1E8D #8D651E #458D1E
monochromatic
#0D0928 #1E135B #2E1E8D #3E29BF #614CD9

Accessibility & contrast

On white

12.45
#2E1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1E8D
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E8D#FFFFFF#000000##FFFFFF
##2E1E8D1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1e8d;
/* rgb */ color: rgb(46, 30, 141);
/* oklch */ color: oklch(34.3% 0.170 279.0);
Tailwind
colors: {
  custom: {
    50: '#755daf',
    500: '#2e1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e8d;
$custom-light: #755daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e8d",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 248.649,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34303,
    "c": 0.17049,
    "h": 279
  },
  "luminance": 0.03432
}

Semantic roles & 50–950 ramp

primary
#2E1E8D
secondary
#ABBC4B
accent
#E840D0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2E1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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