#2E1D8F#2E1D8F

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

Color values

HEX#2E1D8F
RGBrgb(46, 29, 143)
HSLhsl(249, 66%, 34%)
HSVhsv(249, 80%, 56%)
CMYKcmyk(67.8%, 79.7%, 0%, 43.9%)
CIE-LABlab(21.73, 42.06, -59.50)
CIE-LCHlch(21.73, 72.86, 305.25°)
OKLaboklab(34.39% 0.0267 -0.1718)
OKLCHoklch(34.39% 0.174 278.8)
XYZxyz(6.5224, 3.4422, 26.3020)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D8F #7E8F1D
analogous
#1D458F #2E1D8F #671D8F
triadic
#2E1D8F #8F2E1D #1D8F2E
tetradic
#2E1D8F #8F1D45 #7E8F1D #1D8F67
square
#2E1D8F #8F1D45 #7E8F1D #1D8F67
split-complementary
#2E1D8F #8F671D #458F1D
monochromatic
#0D0829 #1E135C #2E1D8F #3E27C2 #614CDB

Accessibility & contrast

On white

12.44
#2E1D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1D8F
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D8F#FFFFFF#000000##FFFFFF
##2E1D8F1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1d8f;
/* rgb */ color: rgb(46, 29, 143);
/* oklch */ color: oklch(34.4% 0.174 278.8);
Tailwind
colors: {
  custom: {
    50: '#755cb1',
    500: '#2e1d8f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d8f;
$custom-light: #755cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d8f",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 248.947,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34394,
    "c": 0.17389,
    "h": 278.8
  },
  "luminance": 0.03443
}

Semantic roles & 50–950 ramp

primary
#2E1D8F
secondary
#ACBD4B
accent
#E93FD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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