#3E5EC5#3E5EC5

#3E5EC5 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.6% C 0.165 H 267.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#3E5EC5
RGBrgb(62, 94, 197)
HSLhsl(226, 54%, 51%)
HSVhsv(226, 69%, 77%)
CMYKcmyk(68.5%, 52.3%, 0%, 22.7%)
CIE-LABlab(42.85, 22.77, -57.31)
CIE-LCHlch(42.85, 61.67, 291.67°)
OKLaboklab(51.57% -0.0076 -0.1647)
OKLCHoklch(51.57% 0.165 267.4)
XYZxyz(16.0639, 13.0592, 54.4866)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E5EC5 #C5A53E
analogous
#3EA1C5 #3E5EC5 #613EC5
triadic
#3E5EC5 #C53E5E #5EC53E
tetradic
#3E5EC5 #C53EA1 #C5A53E #3EC561
square
#3E5EC5 #C53EA1 #C5A53E #3EC561
split-complementary
#3E5EC5 #C5613E #A1C53E
monochromatic
#203169 #2E4798 #3E5EC5 #6D85D3 #9CADE1

Accessibility & contrast

On white

5.81
#3E5EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#3E5EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3E5EC5
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E5EC5#FFFFFF#000000##FFFFFF
##3E5EC51.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6CC9
Deuteranopia (green-blind)
#005FC3
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3e5ec5;
/* rgb */ color: rgb(62, 94, 197);
/* oklch */ color: oklch(51.6% 0.165 267.4);
Tailwind
colors: {
  custom: {
    50: '#838bd7',
    500: '#3e5ec5',
    950: '#000000',
  },
}
SCSS
$custom: #3e5ec5;
$custom-light: #838bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e5ec5",
  "rgb": {
    "r": 62,
    "g": 94,
    "b": 197
  },
  "hsl": {
    "h": 225.778,
    "s": 53.785,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51568,
    "c": 0.16488,
    "h": 267.4
  },
  "luminance": 0.13061
}

Semantic roles & 50–950 ramp

primary
#3E5EC5
secondary
#CDBF91
accent
#BA4BDD
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3E5EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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