#2E1E97#2E1E97

#2E1E97 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.183 H 277.5°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2E1E97
RGBrgb(46, 30, 151)
HSLhsl(248, 67%, 35%)
HSVhsv(248, 80%, 59%)
CMYKcmyk(69.5%, 80.1%, 0%, 40.8%)
CIE-LABlab(22.80, 44.06, -62.68)
CIE-LCHlch(22.80, 76.62, 305.10°)
OKLaboklab(35.4% 0.0239 -0.1811)
OKLCHoklch(35.4% 0.183 277.5)
XYZxyz(7.1751, 3.7431, 29.6165)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E97 #87971E
analogous
#1E4A97 #2E1E97 #6A1E97
triadic
#2E1E97 #972E1E #1E972E
tetradic
#2E1E97 #971E4A #87971E #1E976A
square
#2E1E97 #971E4A #87971E #1E976A
split-complementary
#2E1E97 #976A1E #4A971E
monochromatic
#0F0A31 #1E1464 #2E1E97 #3E28CA #6553DD

Accessibility & contrast

On white

12.01
#2E1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1E97
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E97#FFFFFF#000000##FFFFFF
##2E1E971.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1e97;
/* rgb */ color: rgb(46, 30, 151);
/* oklch */ color: oklch(35.4% 0.183 277.5);
Tailwind
colors: {
  custom: {
    50: '#775db7',
    500: '#2e1e97',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e97;
$custom-light: #775db7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e97",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 247.934,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35404,
    "c": 0.18268,
    "h": 277.5
  },
  "luminance": 0.03744
}

Semantic roles & 50–950 ramp

primary
#2E1E97
secondary
#B1C051
accent
#EA3ED3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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