#3E40E3#3E40E3

#3E40E3 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 49.0% C 0.238 H 272.8°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#3E40E3
RGBrgb(62, 64, 227)
HSLhsl(239, 75%, 57%)
HSVhsv(239, 73%, 89%)
CMYKcmyk(72.7%, 71.8%, 0%, 11%)
CIE-LABlab(38.26, 51.54, -82.05)
CIE-LCHlch(38.26, 96.89, 302.13°)
OKLaboklab(48.95% 0.0116 -0.2374)
OKLCHoklch(48.95% 0.238 272.8)
XYZxyz(17.6805, 10.2352, 73.7019)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40E3 #E3E13E
analogous
#3E93E3 #3E40E3 #8F3EE3
triadic
#3E40E3 #E33E40 #40E33E
tetradic
#3E40E3 #E33E93 #E3E13E #3EE38F
square
#3E40E3 #E33E93 #E3E13E #3EE38F
split-complementary
#3E40E3 #E38F3E #93E33E
monochromatic
#151791 #1D1FC7 #3E40E3 #7375EB #A9AAF3

Accessibility & contrast

On white

6.89
#3E40E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#3E40E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3E40E3
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40E3#FFFFFF#000000##FFFFFF
##3E40E31.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E8
Deuteranopia (green-blind)
#0052E0
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3e40e3;
/* rgb */ color: rgb(62, 64, 227);
/* oklch */ color: oklch(49.0% 0.238 272.8);
Tailwind
colors: {
  custom: {
    50: '#8b76ed',
    500: '#3e40e3',
    950: '#000000',
  },
}
SCSS
$custom: #3e40e3;
$custom-light: #8b76ed;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40e3",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 239.273,
    "s": 74.661,
    "l": 56.667
  },
  "oklch": {
    "l": 0.48952,
    "c": 0.23769,
    "h": 272.8
  },
  "luminance": 0.10237
}

Semantic roles & 50–950 ramp

primary
#3E40E3
secondary
#E0DF9D
accent
#EF37F1
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0917
muted
#7E7B85

Preview Lab

Preview with #3E40E3

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

Preview Lab → · Contrast checker → · Palette generator →

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