#2E1D97#2E1D97

#2E1D97 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.184 H 277.6°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2E1D97
RGBrgb(46, 29, 151)
HSLhsl(248, 68%, 35%)
HSVhsv(248, 81%, 59%)
CMYKcmyk(69.5%, 80.8%, 0%, 40.8%)
CIE-LABlab(22.63, 44.56, -62.97)
CIE-LCHlch(22.63, 77.14, 305.29°)
OKLaboklab(35.28% 0.0244 -0.1819)
OKLCHoklch(35.28% 0.184 277.6)
XYZxyz(7.1502, 3.6933, 29.6082)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D97 #86971D
analogous
#1D4997 #2E1D97 #6B1D97
triadic
#2E1D97 #972E1D #1D972E
tetradic
#2E1D97 #971D49 #86971D #1D976B
square
#2E1D97 #971D49 #86971D #1D976B
split-complementary
#2E1D97 #976B1D #49971D
monochromatic
#0F0930 #1E1364 #2E1D97 #3E27CA #6451DE

Accessibility & contrast

On white

12.08
#2E1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2E1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D97
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D97#FFFFFF#000000##FFFFFF
##2E1D971.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e1d97;
/* rgb */ color: rgb(46, 29, 151);
/* oklch */ color: oklch(35.3% 0.184 277.6);
Tailwind
colors: {
  custom: {
    50: '#775db7',
    500: '#2e1d97',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d97;
$custom-light: #775db7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d97",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 248.361,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35283,
    "c": 0.18356,
    "h": 277.6
  },
  "luminance": 0.03694
}

Semantic roles & 50–950 ramp

primary
#2E1D97
secondary
#B1C04F
accent
#EB3DD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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