#2E1E8E#2E1E8E

#2E1E8E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.172 H 278.8°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#2E1E8E
RGBrgb(46, 30, 142)
HSLhsl(249, 65%, 34%)
HSVhsv(249, 79%, 56%)
CMYKcmyk(67.6%, 78.9%, 0%, 44.3%)
CIE-LABlab(21.81, 41.22, -58.76)
CIE-LCHlch(21.81, 71.77, 305.05°)
OKLaboklab(34.41% 0.0264 -0.1697)
OKLCHoklch(34.41% 0.172 278.8)
XYZxyz(6.4719, 3.4618, 25.9131)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E8E #7E8E1E
analogous
#1E468E #2E1E8E #661E8E
triadic
#2E1E8E #8E2E1E #1E8E2E
tetradic
#2E1E8E #8E1E46 #7E8E1E #1E8E66
square
#2E1E8E #8E1E46 #7E8E1E #1E8E66
split-complementary
#2E1E8E #8E661E #468E1E
monochromatic
#0D0929 #1E135B #2E1E8E #3E29C1 #614DD9

Accessibility & contrast

On white

12.41
#2E1E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E1E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E8E
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E8E#FFFFFF#000000##FFFFFF
##2E1E8E1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1e8e;
/* rgb */ color: rgb(46, 30, 142);
/* oklch */ color: oklch(34.4% 0.172 278.8);
Tailwind
colors: {
  custom: {
    50: '#755db0',
    500: '#2e1e8e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e8e;
$custom-light: #755db0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e8e",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 248.571,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34412,
    "c": 0.17173,
    "h": 278.8
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#2E1E8E
secondary
#ACBC4C
accent
#E840D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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