#3E40D3#3E40D3

#3E40D3 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.4% C 0.218 H 273.7°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#3E40D3
RGBrgb(62, 64, 211)
HSLhsl(239, 63%, 54%)
HSVhsv(239, 71%, 83%)
CMYKcmyk(70.6%, 69.7%, 0%, 17.3%)
CIE-LABlab(36.73, 46.32, -75.40)
CIE-LCHlch(36.73, 88.49, 301.57°)
OKLaboklab(47.39% 0.014 -0.218)
OKLCHoklch(47.39% 0.218 273.7)
XYZxyz(15.5740, 9.3926, 62.6076)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40D3 #D3D13E
analogous
#3E8AD3 #3E40D3 #863ED3
triadic
#3E40D3 #D33E40 #40D33E
tetradic
#3E40D3 #D33E8A #D3D13E #3ED386
square
#3E40D3 #D33E8A #D3D13E #3ED386
split-complementary
#3E40D3 #D3863E #8AD33E
monochromatic
#1C1D7B #2729AC #3E40D3 #7071DE #A2A3EA

Accessibility & contrast

On white

7.29
#3E40D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#3E40D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40D3
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40D3#FFFFFF#000000##FFFFFF
##3E40D31.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD7
Deuteranopia (green-blind)
#004FD0
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3e40d3;
/* rgb */ color: rgb(62, 64, 211);
/* oklch */ color: oklch(47.4% 0.218 273.7);
Tailwind
colors: {
  custom: {
    50: '#8876e2',
    500: '#3e40d3',
    950: '#000000',
  },
}
SCSS
$custom: #3e40d3;
$custom-light: #8876e2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40d3",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 239.195,
    "s": 62.869,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47394,
    "c": 0.21845,
    "h": 273.7
  },
  "luminance": 0.09394
}

Semantic roles & 50–950 ramp

primary
#3E40D3
secondary
#D6D596
accent
#E442E6
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3E40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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