#3E40D7#3E40D7

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

Color values

HEX#3E40D7
RGBrgb(62, 64, 215)
HSLhsl(239, 66%, 54%)
HSVhsv(239, 71%, 84%)
CMYKcmyk(71.2%, 70.2%, 0%, 15.7%)
CIE-LABlab(37.11, 47.64, -77.08)
CIE-LCHlch(37.11, 90.61, 301.72°)
OKLaboklab(47.78% 0.0134 -0.2229)
OKLCHoklch(47.78% 0.223 273.4)
XYZxyz(16.0816, 9.5956, 65.2814)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40D7 #D7D53E
analogous
#3E8CD7 #3E40D7 #893ED7
triadic
#3E40D7 #D73E40 #40D73E
tetradic
#3E40D7 #D73E8C #D7D53E #3ED789
square
#3E40D7 #D73E8C #D7D53E #3ED789
split-complementary
#3E40D7 #D7893E #8CD73E
monochromatic
#1B1C80 #2527B3 #3E40D7 #7172E2 #A3A4EC

Accessibility & contrast

On white

7.19
#3E40D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#3E40D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40D7
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40D7#FFFFFF#000000##FFFFFF
##3E40D71.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDC
Deuteranopia (green-blind)
#0050D4
Tritanopia (blue-blind)
#006A87
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3e40d7;
/* rgb */ color: rgb(62, 64, 215);
/* oklch */ color: oklch(47.8% 0.223 273.4);
Tailwind
colors: {
  custom: {
    50: '#8976e5',
    500: '#3e40d7',
    950: '#000000',
  },
}
SCSS
$custom: #3e40d7;
$custom-light: #8976e5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40d7",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 239.216,
    "s": 65.665,
    "l": 54.314
  },
  "oklch": {
    "l": 0.47779,
    "c": 0.22332,
    "h": 273.4
  },
  "luminance": 0.09597
}

Semantic roles & 50–950 ramp

primary
#3E40D7
secondary
#D9D898
accent
#E63FE9
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3E40D7

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

Preview Lab → · Contrast checker → · Palette generator →

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