#2E1D9B#2E1D9B

#2E1D9B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.188 H 277.1°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2E1D9B
RGBrgb(46, 29, 155)
HSLhsl(248, 68%, 36%)
HSVhsv(248, 81%, 61%)
CMYKcmyk(70.3%, 81.3%, 0%, 39.2%)
CIE-LABlab(23.09, 45.80, -64.67)
CIE-LCHlch(23.09, 79.25, 305.30°)
OKLaboklab(35.73% 0.0233 -0.1869)
OKLCHoklch(35.73% 0.188 277.1)
XYZxyz(7.4805, 3.8255, 31.3482)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D9B #8A9B1D
analogous
#1D4B9B #2E1D9B #6D1D9B
triadic
#2E1D9B #9B2E1D #1D9B2E
tetradic
#2E1D9B #9B1D4B #8A9B1D #1D9B6D
square
#2E1D9B #9B1D4B #8A9B1D #1D9B6D
split-complementary
#2E1D9B #9B6D1D #4B9B1D
monochromatic
#0F0A34 #1F1367 #2E1D9B #3D27CF #6653DF

Accessibility & contrast

On white

11.90
#2E1D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2E1D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D9B
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D9B#FFFFFF#000000##FFFFFF
##2E1D9B1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e1d9b;
/* rgb */ color: rgb(46, 29, 155);
/* oklch */ color: oklch(35.7% 0.188 277.1);
Tailwind
colors: {
  custom: {
    50: '#785dba',
    500: '#2e1d9b',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d9b;
$custom-light: #785dba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d9b",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 155
  },
  "hsl": {
    "h": 248.095,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35733,
    "c": 0.18833,
    "h": 277.1
  },
  "luminance": 0.03826
}

Semantic roles & 50–950 ramp

primary
#2E1D9B
secondary
#B3C252
accent
#EB3CD4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2E1D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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