#3E40C2#3E40C2

#3E40C2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.8% C 0.197 H 274.7°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#3E40C2
RGBrgb(62, 64, 194)
HSLhsl(239, 52%, 50%)
HSVhsv(239, 68%, 76%)
CMYKcmyk(68%, 67%, 0%, 23.9%)
CIE-LABlab(35.17, 40.66, -68.07)
CIE-LCHlch(35.17, 79.29, 300.85°)
OKLaboklab(45.8% 0.0161 -0.1966)
OKLCHoklch(45.8% 0.197 274.7)
XYZxyz(13.5544, 8.5847, 51.9712)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40C2 #C2C03E
analogous
#3E82C2 #3E40C2 #7E3EC2
triadic
#3E40C2 #C23E40 #40C23E
tetradic
#3E40C2 #C23E82 #C2C03E #3EC27E
square
#3E40C2 #C23E82 #C2C03E #3EC27E
split-complementary
#3E40C2 #C27E3E #82C23E
monochromatic
#202166 #2F3094 #3E40C2 #6D6ED1 #9B9CDF

Accessibility & contrast

On white

7.73
#3E40C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3E40C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40C2
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40C2#FFFFFF#000000##FFFFFF
##3E40C21.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#004DC0
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3e40c2;
/* rgb */ color: rgb(62, 64, 194);
/* oklch */ color: oklch(45.8% 0.197 274.7);
Tailwind
colors: {
  custom: {
    50: '#8475d6',
    500: '#3e40c2',
    950: '#000000',
  },
}
SCSS
$custom: #3e40c2;
$custom-light: #8475d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40c2",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 239.091,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45797,
    "c": 0.19725,
    "h": 274.7
  },
  "luminance": 0.08586
}

Semantic roles & 50–950 ramp

primary
#3E40C2
secondary
#CBCB90
accent
#D94CDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3E40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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