#2E1FC4#2E1FC4

#2E1FC4 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.7% C 0.234 H 272.7°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2E1FC4
RGBrgb(46, 31, 196)
HSLhsl(245, 73%, 45%)
HSVhsv(245, 84%, 77%)
CMYKcmyk(76.5%, 84.2%, 0%, 23.1%)
CIE-LABlab(28.23, 57.19, -80.74)
CIE-LCHlch(28.23, 98.94, 305.31°)
OKLaboklab(40.69% 0.0112 -0.2335)
OKLCHoklch(40.69% 0.234 272.7)
XYZxyz(11.5772, 5.5451, 52.6740)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1FC4 #B5C41F
analogous
#1F62C4 #2E1FC4 #811FC4
triadic
#2E1FC4 #C42E1F #1FC42E
tetradic
#2E1FC4 #C41F62 #B5C41F #1FC481
square
#2E1FC4 #C41F62 #B5C41F #1FC481
split-complementary
#2E1FC4 #C4811F #62C41F
monochromatic
#150E5A #22178F #2E1FC4 #4E3FE1 #7F74E9

Accessibility & contrast

On white

9.96
#2E1FC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2E1FC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1FC4
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1FC4#FFFFFF#000000##FFFFFF
##2E1FC41.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC8
Deuteranopia (green-blind)
#003BC1
Tritanopia (blue-blind)
#005675
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e1fc4;
/* rgb */ color: rgb(46, 31, 196);
/* oklch */ color: oklch(40.7% 0.234 272.7);
Tailwind
colors: {
  custom: {
    50: '#8161d7',
    500: '#2e1fc4',
    950: '#000000',
  },
}
SCSS
$custom: #2e1fc4;
$custom-light: #8161d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1fc4",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 196
  },
  "hsl": {
    "h": 245.455,
    "s": 72.687,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40686,
    "c": 0.23377,
    "h": 272.7
  },
  "luminance": 0.05546
}

Semantic roles & 50–950 ramp

primary
#2E1FC4
secondary
#C7D06F
accent
#EF38DF
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0515
muted
#7D7A83

Preview Lab

Preview with #2E1FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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