#2E1D99#2E1D99

#2E1D99 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.186 H 277.4°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2E1D99
RGBrgb(46, 29, 153)
HSLhsl(248, 68%, 36%)
HSVhsv(248, 81%, 60%)
CMYKcmyk(69.9%, 81%, 0%, 40%)
CIE-LABlab(22.86, 45.18, -63.82)
CIE-LCHlch(22.86, 78.20, 305.30°)
OKLaboklab(35.51% 0.0238 -0.1844)
OKLCHoklch(35.51% 0.186 277.4)
XYZxyz(7.3140, 3.7588, 30.4709)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D99 #88991D
analogous
#1D4A99 #2E1D99 #6C1D99
triadic
#2E1D99 #992E1D #1D992E
tetradic
#2E1D99 #991D4A #88991D #1D996C
square
#2E1D99 #991D4A #88991D #1D996C
split-complementary
#2E1D99 #996C1D #4A991D
monochromatic
#0F0932 #1F1366 #2E1D99 #3D27CC #6552DE

Accessibility & contrast

On white

11.99
#2E1D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E1D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D99
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D99#FFFFFF#000000##FFFFFF
##2E1D991.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e1d99;
/* rgb */ color: rgb(46, 29, 153);
/* oklch */ color: oklch(35.5% 0.186 277.4);
Tailwind
colors: {
  custom: {
    50: '#785db8',
    500: '#2e1d99',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d99;
$custom-light: #785db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d99",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 248.226,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35508,
    "c": 0.18595,
    "h": 277.4
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#2E1D99
secondary
#B2C151
accent
#EB3DD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2E1D99

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

Preview Lab → · Contrast checker → · Palette generator →

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