#3E40C4#3E40C4

#3E40C4 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 46.0% C 0.200 H 274.6°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#3E40C4
RGBrgb(62, 64, 196)
HSLhsl(239, 53%, 51%)
HSVhsv(239, 68%, 77%)
CMYKcmyk(68.4%, 67.3%, 0%, 23.1%)
CIE-LABlab(35.35, 41.33, -68.95)
CIE-LCHlch(35.35, 80.39, 300.94°)
OKLaboklab(45.98% 0.0159 -0.1992)
OKLCHoklch(45.98% 0.2 274.6)
XYZxyz(13.7805, 8.6752, 53.1621)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40C4 #C4C23E
analogous
#3E83C4 #3E40C4 #7F3EC4
triadic
#3E40C4 #C43E40 #40C43E
tetradic
#3E40C4 #C43E83 #C4C23E #3EC47F
square
#3E40C4 #C43E83 #C4C23E #3EC47F
split-complementary
#3E40C4 #C47F3E #83C43E
monochromatic
#202168 #2E3097 #3E40C4 #6D6ED2 #9C9DE1

Accessibility & contrast

On white

7.68
#3E40C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#3E40C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40C4
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40C4#FFFFFF#000000##FFFFFF
##3E40C41.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C8
Deuteranopia (green-blind)
#004DC2
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3e40c4;
/* rgb */ color: rgb(62, 64, 196);
/* oklch */ color: oklch(46.0% 0.200 274.6);
Tailwind
colors: {
  custom: {
    50: '#8575d7',
    500: '#3e40c4',
    950: '#000000',
  },
}
SCSS
$custom: #3e40c4;
$custom-light: #8575d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40c4",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 239.104,
    "s": 53.175,
    "l": 50.588
  },
  "oklch": {
    "l": 0.45981,
    "c": 0.19979,
    "h": 274.6
  },
  "luminance": 0.08676
}

Semantic roles & 50–950 ramp

primary
#3E40C4
secondary
#CDCC91
accent
#DA4BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3E40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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