#2E1D8D#2E1D8D

#2E1D8D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.171 H 279.1°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#2E1D8D
RGBrgb(46, 29, 141)
HSLhsl(249, 66%, 33%)
HSVhsv(249, 79%, 55%)
CMYKcmyk(67.4%, 79.4%, 0%, 44.7%)
CIE-LABlab(21.51, 41.43, -58.62)
CIE-LCHlch(21.51, 71.78, 305.25°)
OKLaboklab(34.17% 0.0272 -0.1693)
OKLCHoklch(34.17% 0.171 279.1)
XYZxyz(6.3723, 3.3821, 25.5111)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D8D #7C8D1D
analogous
#1D448D #2E1D8D #661D8D
triadic
#2E1D8D #8D2E1D #1D8D2E
tetradic
#2E1D8D #8D1D44 #7C8D1D #1D8D66
square
#2E1D8D #8D1D44 #7C8D1D #1D8D66
split-complementary
#2E1D8D #8D661D #448D1D
monochromatic
#0D0827 #1D135A #2E1D8D #3F27C0 #604BDA

Accessibility & contrast

On white

12.53
#2E1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1D8D
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D8D#FFFFFF#000000##FFFFFF
##2E1D8D1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1d8d;
/* rgb */ color: rgb(46, 29, 141);
/* oklch */ color: oklch(34.2% 0.171 279.1);
Tailwind
colors: {
  custom: {
    50: '#755cb0',
    500: '#2e1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d8d;
$custom-light: #755cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d8d",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 249.107,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34175,
    "c": 0.17144,
    "h": 279.1
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#2E1D8D
secondary
#ABBC4A
accent
#E93FCF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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