#2E1E8A#2E1E8A

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

Color values

HEX#2E1E8A
RGBrgb(46, 30, 138)
HSLhsl(249, 64%, 33%)
HSVhsv(249, 78%, 54%)
CMYKcmyk(66.7%, 78.3%, 0%, 45.9%)
CIE-LABlab(21.37, 39.94, -56.98)
CIE-LCHlch(21.37, 69.58, 305.03°)
OKLaboklab(33.98% 0.0274 -0.1645)
OKLCHoklch(33.98% 0.167 279.5)
XYZxyz(6.1770, 3.3439, 24.3597)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E8A #7A8A1E
analogous
#1E448A #2E1E8A #641E8A
triadic
#2E1E8A #8A2E1E #1E8A2E
tetradic
#2E1E8A #8A1E44 #7A8A1E #1E8A64
square
#2E1E8A #8A1E44 #7A8A1E #1E8A64
split-complementary
#2E1E8A #8A641E #448A1E
monochromatic
#0C0825 #1D1358 #2E1E8A #3F29BC #604BD8

Accessibility & contrast

On white

12.58
#2E1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1E8A
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E8A#FFFFFF#000000##FFFFFF
##2E1E8A1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1e8a;
/* rgb */ color: rgb(46, 30, 138);
/* oklch */ color: oklch(34.0% 0.167 279.5);
Tailwind
colors: {
  custom: {
    50: '#745dad',
    500: '#2e1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e8a;
$custom-light: #745dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e8a",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 248.889,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33978,
    "c": 0.16678,
    "h": 279.5
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#2E1E8A
secondary
#AABA4A
accent
#E741CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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