#2E1FB4#2E1FB4

#2E1FB4 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.8% C 0.216 H 274.1°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#2E1FB4
RGBrgb(46, 31, 180)
HSLhsl(246, 71%, 41%)
HSVhsv(246, 83%, 71%)
CMYKcmyk(74.4%, 82.8%, 0%, 29.4%)
CIE-LABlab(26.32, 52.47, -74.44)
CIE-LCHlch(26.32, 91.07, 305.18°)
OKLaboklab(38.82% 0.0155 -0.2153)
OKLCHoklch(38.82% 0.216 274.1)
XYZxyz(9.8522, 4.8551, 43.5891)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1FB4 #A5B41F
analogous
#1F5BB4 #2E1FB4 #791FB4
triadic
#2E1FB4 #B42E1F #1FB42E
tetradic
#2E1FB4 #B41F5B #A5B41F #1FB479
square
#2E1FB4 #B41F5B #A5B41F #1FB479
split-complementary
#2E1FB4 #B4791F #5BB41F
monochromatic
#130D4C #211680 #2E1FB4 #4534DC #7568E5

Accessibility & contrast

On white

10.65
#2E1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2E1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1FB4
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1FB4#FFFFFF#000000##FFFFFF
##2E1FB41.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#0037B2
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e1fb4;
/* rgb */ color: rgb(46, 31, 180);
/* oklch */ color: oklch(38.8% 0.216 274.1);
Tailwind
colors: {
  custom: {
    50: '#7e60cc',
    500: '#2e1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #2e1fb4;
$custom-light: #7e60cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1fb4",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 246.04,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38817,
    "c": 0.21582,
    "h": 274.1
  },
  "luminance": 0.04856
}

Semantic roles & 50–950 ramp

primary
#2E1FB4
secondary
#C0CB64
accent
#ED3ADB
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2E1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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