#2E1F96#2E1F96

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

Color values

HEX#2E1F96
RGBrgb(46, 31, 150)
HSLhsl(248, 66%, 35%)
HSVhsv(248, 79%, 59%)
CMYKcmyk(69.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(22.87, 43.23, -61.96)
CIE-LCHlch(22.87, 75.55, 304.91°)
OKLaboklab(35.42% 0.0237 -0.179)
OKLCHoklch(35.42% 0.181 277.5)
XYZxyz(7.1199, 3.7622, 29.1992)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F96 #87961F
analogous
#1F4B96 #2E1F96 #691F96
triadic
#2E1F96 #962E1F #1F962E
tetradic
#2E1F96 #961F4B #87961F #1F9669
square
#2E1F96 #961F4B #87961F #1F9669
split-complementary
#2E1F96 #96691F #4B961F
monochromatic
#0F0A31 #1E1563 #2E1F96 #3E29C9 #6554DC

Accessibility & contrast

On white

11.98
#2E1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1F96
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F96#FFFFFF#000000##FFFFFF
##2E1F961.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e1f96;
/* rgb */ color: rgb(46, 31, 150);
/* oklch */ color: oklch(35.4% 0.181 277.5);
Tailwind
colors: {
  custom: {
    50: '#775eb6',
    500: '#2e1f96',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f96;
$custom-light: #775eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f96",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 247.563,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35417,
    "c": 0.18058,
    "h": 277.5
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#2E1F96
secondary
#B1BF52
accent
#E93FD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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