#2E1F97#2E1F97

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

Color values

HEX#2E1F97
RGBrgb(46, 31, 151)
HSLhsl(248, 66%, 36%)
HSVhsv(248, 79%, 59%)
CMYKcmyk(69.5%, 79.5%, 0%, 40.8%)
CIE-LABlab(22.98, 43.55, -62.39)
CIE-LCHlch(22.98, 76.09, 304.92°)
OKLaboklab(35.53% 0.0234 -0.1803)
OKLCHoklch(35.53% 0.182 277.4)
XYZxyz(7.2008, 3.7945, 29.6251)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F97 #88971F
analogous
#1F4C97 #2E1F97 #6A1F97
triadic
#2E1F97 #972E1F #1F972E
tetradic
#2E1F97 #971F4C #88971F #1F976A
square
#2E1F97 #971F4C #88971F #1F976A
split-complementary
#2E1F97 #976A1F #4C971F
monochromatic
#0F0A31 #1F1564 #2E1F97 #3D29CA #6554DC

Accessibility & contrast

On white

11.94
#2E1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2E1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F97
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F97#FFFFFF#000000##FFFFFF
##2E1F971.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1f97;
/* rgb */ color: rgb(46, 31, 151);
/* oklch */ color: oklch(35.5% 0.182 277.4);
Tailwind
colors: {
  custom: {
    50: '#775eb7',
    500: '#2e1f97',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f97;
$custom-light: #775eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f97",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 247.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35527,
    "c": 0.18179,
    "h": 277.4
  },
  "luminance": 0.03795
}

Semantic roles & 50–950 ramp

primary
#2E1F97
secondary
#B2BF52
accent
#E93FD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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