#3E31C1#3E31C1

#3E31C1 is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.5% C 0.212 H 276.9°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#3E31C1
RGBrgb(62, 49, 193)
HSLhsl(245, 60%, 47%)
HSVhsv(245, 75%, 76%)
CMYKcmyk(67.9%, 74.6%, 0%, 24.3%)
CIE-LABlab(31.97, 48.92, -72.76)
CIE-LCHlch(31.97, 87.68, 303.91°)
OKLaboklab(43.47% 0.0256 -0.2102)
OKLCHoklch(43.47% 0.212 276.9)
XYZxyz(12.7074, 7.0699, 51.1367)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31C1 #B4C131
analogous
#316CC1 #3E31C1 #8631C1
triadic
#3E31C1 #C13E31 #31C13E
tetradic
#3E31C1 #C1316C #B4C131 #31C186
square
#3E31C1 #C1316C #B4C131 #31C186
split-complementary
#3E31C1 #C18631 #6CC131
monochromatic
#1F185F #2E2590 #3E31C1 #655AD5 #938BE2

Accessibility & contrast

On white

8.70
#3E31C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3E31C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E31C1
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31C1#FFFFFF#000000##FFFFFF
##3E31C11.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C5
Deuteranopia (green-blind)
#0045BE
Tritanopia (blue-blind)
#005B77
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3e31c1;
/* rgb */ color: rgb(62, 49, 193);
/* oklch */ color: oklch(43.5% 0.212 276.9);
Tailwind
colors: {
  custom: {
    50: '#856cd5',
    500: '#3e31c1',
    950: '#000000',
  },
}
SCSS
$custom: #3e31c1;
$custom-light: #856cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31c1",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 245.417,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.43473,
    "c": 0.21181,
    "h": 276.9
  },
  "luminance": 0.07071
}

Semantic roles & 50–950 ramp

primary
#3E31C1
secondary
#C5CC82
accent
#E345D4
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0714
muted
#7D7A83

Preview Lab

Preview with #3E31C1

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

Preview Lab → · Contrast checker → · Palette generator →

#3E31C1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva