#2E1D8A#2E1D8A

#2E1D8A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.168 H 279.6°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#2E1D8A
RGBrgb(46, 29, 138)
HSLhsl(249, 65%, 33%)
HSVhsv(249, 79%, 54%)
CMYKcmyk(66.7%, 79%, 0%, 45.9%)
CIE-LABlab(21.19, 40.47, -57.29)
CIE-LCHlch(21.19, 70.14, 305.24°)
OKLaboklab(33.85% 0.028 -0.1654)
OKLCHoklch(33.85% 0.168 279.6)
XYZxyz(6.1521, 3.2941, 24.3514)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D8A #798A1D
analogous
#1D428A #2E1D8A #641D8A
triadic
#2E1D8A #8A2E1D #1D8A2E
tetradic
#2E1D8A #8A1D42 #798A1D #1D8A64
square
#2E1D8A #8A1D42 #798A1D #1D8A64
split-complementary
#2E1D8A #8A641D #428A1D
monochromatic
#0C0825 #1D1257 #2E1D8A #3F28BD #5F49D9

Accessibility & contrast

On white

12.66
#2E1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2E1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D8A
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D8A#FFFFFF#000000##FFFFFF
##2E1D8A1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1d8a;
/* rgb */ color: rgb(46, 29, 138);
/* oklch */ color: oklch(33.8% 0.168 279.6);
Tailwind
colors: {
  custom: {
    50: '#745cad',
    500: '#2e1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d8a;
$custom-light: #745cad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d8a",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 249.358,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33847,
    "c": 0.16776,
    "h": 279.6
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#2E1D8A
secondary
#A9BB48
accent
#E840CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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