#3E51C2#3E51C2

#3E51C2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.8% C 0.177 H 271.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#3E51C2
RGBrgb(62, 81, 194)
HSLhsl(231, 52%, 50%)
HSVhsv(231, 68%, 76%)
CMYKcmyk(68%, 58.2%, 0%, 23.9%)
CIE-LABlab(39.25, 30.04, -61.42)
CIE-LCHlch(39.25, 68.37, 296.06°)
OKLaboklab(48.79% 0.0032 -0.1769)
OKLCHoklch(48.79% 0.177 271)
XYZxyz(14.6633, 10.8026, 52.3408)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E51C2 #C2AF3E
analogous
#3E93C2 #3E51C2 #6D3EC2
triadic
#3E51C2 #C23E51 #51C23E
tetradic
#3E51C2 #C23E93 #C2AF3E #3EC26D
square
#3E51C2 #C23E93 #C2AF3E #3EC26D
split-complementary
#3E51C2 #C26D3E #93C23E
monochromatic
#202A66 #2F3D94 #3E51C2 #6D7BD1 #9BA5DF

Accessibility & contrast

On white

6.64
#3E51C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#3E51C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3E51C2
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E51C2#FFFFFF#000000##FFFFFF
##3E51C21.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0057C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3e51c2;
/* rgb */ color: rgb(62, 81, 194);
/* oklch */ color: oklch(48.8% 0.177 271.0);
Tailwind
colors: {
  custom: {
    50: '#8381d5',
    500: '#3e51c2',
    950: '#000000',
  },
}
SCSS
$custom: #3e51c2;
$custom-light: #8381d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e51c2",
  "rgb": {
    "r": 62,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 231.364,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48792,
    "c": 0.17698,
    "h": 271
  },
  "luminance": 0.10804
}

Semantic roles & 50–950 ramp

primary
#3E51C2
secondary
#CBC390
accent
#C74CDB
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3E51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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