#2E1D8B#2E1D8B

#2E1D8B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.169 H 279.5°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#2E1D8B
RGBrgb(46, 29, 139)
HSLhsl(249, 65%, 33%)
HSVhsv(249, 79%, 55%)
CMYKcmyk(66.9%, 79.1%, 0%, 45.5%)
CIE-LABlab(21.29, 40.79, -57.73)
CIE-LCHlch(21.29, 70.69, 305.24°)
OKLaboklab(33.96% 0.0278 -0.1667)
OKLCHoklch(33.96% 0.169 279.5)
XYZxyz(6.2248, 3.3231, 24.7345)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D8B #7A8B1D
analogous
#1D438B #2E1D8B #651D8B
triadic
#2E1D8B #8B2E1D #1D8B2E
tetradic
#2E1D8B #8B1D43 #7A8B1D #1D8B65
square
#2E1D8B #8B1D43 #7A8B1D #1D8B65
split-complementary
#2E1D8B #8B651D #438B1D
monochromatic
#0C0826 #1D1258 #2E1D8B #3F28BE #6049D9

Accessibility & contrast

On white

12.61
#2E1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1D8B
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D8B#FFFFFF#000000##FFFFFF
##2E1D8B1.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1d8b;
/* rgb */ color: rgb(46, 29, 139);
/* oklch */ color: oklch(34.0% 0.169 279.5);
Tailwind
colors: {
  custom: {
    50: '#755cae',
    500: '#2e1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d8b;
$custom-light: #755cae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d8b",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 249.273,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33956,
    "c": 0.16899,
    "h": 279.5
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#2E1D8B
secondary
#AABB49
accent
#E83FCE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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