#2E1D8E#2E1D8E

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

Color values

HEX#2E1D8E
RGBrgb(46, 29, 142)
HSLhsl(249, 66%, 34%)
HSVhsv(249, 80%, 56%)
CMYKcmyk(67.6%, 79.6%, 0%, 44.3%)
CIE-LABlab(21.62, 41.74, -59.06)
CIE-LCHlch(21.62, 72.32, 305.25°)
OKLaboklab(34.28% 0.0269 -0.1706)
OKLCHoklch(34.28% 0.173 279)
XYZxyz(6.4470, 3.4120, 25.9048)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D8E #7D8E1D
analogous
#1D448E #2E1D8E #661D8E
triadic
#2E1D8E #8E2E1D #1D8E2E
tetradic
#2E1D8E #8E1D44 #7D8E1D #1D8E66
square
#2E1D8E #8E1D44 #7D8E1D #1D8E66
split-complementary
#2E1D8E #8E661D #448E1D
monochromatic
#0D0828 #1E135B #2E1D8E #3E27C1 #614BDA

Accessibility & contrast

On white

12.48
#2E1D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2E1D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D8E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D8E#FFFFFF#000000##FFFFFF
##2E1D8E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1d8e;
/* rgb */ color: rgb(46, 29, 142);
/* oklch */ color: oklch(34.3% 0.173 279.0);
Tailwind
colors: {
  custom: {
    50: '#755cb0',
    500: '#2e1d8e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d8e;
$custom-light: #755cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d8e",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 249.027,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34284,
    "c": 0.17267,
    "h": 279
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#2E1D8E
secondary
#ABBD4A
accent
#E93FCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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