#2E1D9F#2E1D9F

#2E1D9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.193 H 276.6°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2E1D9F
RGBrgb(46, 29, 159)
HSLhsl(248, 69%, 37%)
HSVhsv(248, 82%, 62%)
CMYKcmyk(71.1%, 81.8%, 0%, 37.6%)
CIE-LABlab(23.55, 47.03, -66.36)
CIE-LCHlch(23.55, 81.34, 305.33°)
OKLaboklab(36.19% 0.0221 -0.1918)
OKLCHoklch(36.19% 0.193 276.6)
XYZxyz(7.8220, 3.9620, 33.1467)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D9F #8E9F1D
analogous
#1D4D9F #2E1D9F #6F1D9F
triadic
#2E1D9F #9F2E1D #1D9F2E
tetradic
#2E1D9F #9F1D4D #8E9F1D #1D9F6F
square
#2E1D9F #9F1D4D #8E9F1D #1D9F6F
split-complementary
#2E1D9F #9F6F1D #4D9F1D
monochromatic
#100A37 #1F146B #2E1D9F #3D26D3 #6856E0

Accessibility & contrast

On white

11.71
#2E1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2E1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D9F
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D9F#FFFFFF#000000##FFFFFF
##2E1D9F1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e1d9f;
/* rgb */ color: rgb(46, 29, 159);
/* oklch */ color: oklch(36.2% 0.193 276.6);
Tailwind
colors: {
  custom: {
    50: '#795dbd',
    500: '#2e1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d9f;
$custom-light: #795dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d9f",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 247.846,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36187,
    "c": 0.19306,
    "h": 276.6
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#2E1D9F
secondary
#B5C454
accent
#EC3CD5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2E1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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