#2E1FD2#2E1FD2

#2E1FD2 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 42.3% C 0.249 H 271.7°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2E1FD2
RGBrgb(46, 31, 210)
HSLhsl(245, 74%, 47%)
HSVhsv(245, 85%, 82%)
CMYKcmyk(78.1%, 85.2%, 0%, 17.6%)
CIE-LABlab(29.94, 61.20, -86.08)
CIE-LCHlch(29.94, 105.62, 305.41°)
OKLaboklab(42.34% 0.0076 -0.2489)
OKLCHoklch(42.34% 0.249 271.7)
XYZxyz(13.2457, 6.2125, 61.4613)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1FD2 #C3D21F
analogous
#1F69D2 #2E1FD2 #881FD2
triadic
#2E1FD2 #D22E1F #1FD22E
tetradic
#2E1FD2 #D21F69 #C3D21F #1FD288
square
#2E1FD2 #D21F69 #C3D21F #1FD288
split-complementary
#2E1FD2 #D2881F #69D21F
monochromatic
#170F67 #22179D #2E1FD2 #574AE4 #887FEC

Accessibility & contrast

On white

9.36
#2E1FD2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2E1FD2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1FD2
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1FD2#FFFFFF#000000##FFFFFF
##2E1FD21.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FD7
Deuteranopia (green-blind)
#003ECF
Tritanopia (blue-blind)
#005B7D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e1fd2;
/* rgb */ color: rgb(46, 31, 210);
/* oklch */ color: oklch(42.3% 0.249 271.7);
Tailwind
colors: {
  custom: {
    50: '#8562e1',
    500: '#2e1fd2',
    950: '#000000',
  },
}
SCSS
$custom: #2e1fd2;
$custom-light: #8562e1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1fd2",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 210
  },
  "hsl": {
    "h": 245.028,
    "s": 74.274,
    "l": 47.255
  },
  "oklch": {
    "l": 0.42343,
    "c": 0.24906,
    "h": 271.7
  },
  "luminance": 0.06214
}

Semantic roles & 50–950 ramp

primary
#2E1FD2
secondary
#CDD478
accent
#F137E1
background
#F9F6FE
surface
#F1EBFC
border
#CBC6D5
text
#0D0616
muted
#7E7A84

Preview Lab

Preview with #2E1FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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