#3E40D8#3E40D8

#3E40D8 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.9% C 0.225 H 273.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#3E40D8
RGBrgb(62, 64, 216)
HSLhsl(239, 66%, 55%)
HSVhsv(239, 71%, 85%)
CMYKcmyk(71.3%, 70.4%, 0%, 15.3%)
CIE-LABlab(37.20, 47.97, -77.50)
CIE-LCHlch(37.20, 91.14, 301.75°)
OKLaboklab(47.88% 0.0133 -0.2241)
OKLCHoklch(47.88% 0.225 273.4)
XYZxyz(16.2105, 9.6472, 65.9602)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40D8 #D8D63E
analogous
#3E8DD8 #3E40D8 #893ED8
triadic
#3E40D8 #D83E40 #40D83E
tetradic
#3E40D8 #D83E8D #D8D63E #3ED889
square
#3E40D8 #D83E8D #D8D63E #3ED889
split-complementary
#3E40D8 #D8893E #8DD83E
monochromatic
#1A1B81 #2426B4 #3E40D8 #7172E2 #A4A5ED

Accessibility & contrast

On white

7.17
#3E40D8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#3E40D8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40D8
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40D8#FFFFFF#000000##FFFFFF
##3E40D81.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDD
Deuteranopia (green-blind)
#0050D5
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3e40d8;
/* rgb */ color: rgb(62, 64, 216);
/* oklch */ color: oklch(47.9% 0.225 273.4);
Tailwind
colors: {
  custom: {
    50: '#8976e5',
    500: '#3e40d8',
    950: '#000000',
  },
}
SCSS
$custom: #3e40d8;
$custom-light: #8976e5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40d8",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 239.221,
    "s": 66.379,
    "l": 54.51
  },
  "oklch": {
    "l": 0.47876,
    "c": 0.22453,
    "h": 273.4
  },
  "luminance": 0.09649
}

Semantic roles & 50–950 ramp

primary
#3E40D8
secondary
#D9D998
accent
#E73EE9
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3E40D8

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

Preview Lab → · Contrast checker → · Palette generator →

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