#2E1E8B#2E1E8B

#2E1E8B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.168 H 279.3°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#2E1E8B
RGBrgb(46, 30, 139)
HSLhsl(249, 64%, 33%)
HSVhsv(249, 78%, 55%)
CMYKcmyk(66.9%, 78.4%, 0%, 45.5%)
CIE-LABlab(21.48, 40.26, -57.43)
CIE-LCHlch(21.48, 70.13, 305.03°)
OKLaboklab(34.09% 0.0272 -0.1658)
OKLCHoklch(34.09% 0.168 279.3)
XYZxyz(6.2497, 3.3730, 24.7428)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E8B #7B8B1E
analogous
#1E458B #2E1E8B #641E8B
triadic
#2E1E8B #8B2E1E #1E8B2E
tetradic
#2E1E8B #8B1E45 #7B8B1E #1E8B64
square
#2E1E8B #8B1E45 #7B8B1E #1E8B64
split-complementary
#2E1E8B #8B641E #458B1E
monochromatic
#0D0826 #1D1359 #2E1E8B #3F29BD #604BD8

Accessibility & contrast

On white

12.54
#2E1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2E1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E8B
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E8B#FFFFFF#000000##FFFFFF
##2E1E8B1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1e8b;
/* rgb */ color: rgb(46, 30, 139);
/* oklch */ color: oklch(34.1% 0.168 279.3);
Tailwind
colors: {
  custom: {
    50: '#745dae',
    500: '#2e1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e8b;
$custom-light: #745dae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e8b",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 248.807,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34086,
    "c": 0.16802,
    "h": 279.3
  },
  "luminance": 0.03373
}

Semantic roles & 50–950 ramp

primary
#2E1E8B
secondary
#AABB4A
accent
#E740CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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