#3E40DA#3E40DA

#3E40DA is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.227 H 273.3°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#3E40DA
RGBrgb(62, 64, 218)
HSLhsl(239, 68%, 55%)
HSVhsv(239, 72%, 85%)
CMYKcmyk(71.6%, 70.6%, 0%, 14.5%)
CIE-LABlab(37.39, 48.62, -78.34)
CIE-LCHlch(37.39, 92.20, 301.83°)
OKLaboklab(48.07% 0.013 -0.2266)
OKLCHoklch(48.07% 0.227 273.3)
XYZxyz(16.4707, 9.7512, 67.3302)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40DA #DAD83E
analogous
#3E8EDA #3E40DA #8A3EDA
triadic
#3E40DA #DA3E40 #40DA3E
tetradic
#3E40DA #DA3E8E #DAD83E #3EDA8A
square
#3E40DA #DA3E8E #DAD83E #3EDA8A
split-complementary
#3E40DA #DA8A3E #8EDA3E
monochromatic
#191B84 #2325B8 #3E40DA #7173E4 #A5A6EE

Accessibility & contrast

On white

7.12
#3E40DA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#3E40DA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40DA
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40DA#FFFFFF#000000##FFFFFF
##3E40DA1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDF
Deuteranopia (green-blind)
#0050D7
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3e40da;
/* rgb */ color: rgb(62, 64, 218);
/* oklch */ color: oklch(48.1% 0.227 273.3);
Tailwind
colors: {
  custom: {
    50: '#8976e7',
    500: '#3e40da',
    950: '#000000',
  },
}
SCSS
$custom: #3e40da;
$custom-light: #8976e7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40da",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 239.231,
    "s": 67.826,
    "l": 54.902
  },
  "oklch": {
    "l": 0.4807,
    "c": 0.22695,
    "h": 273.3
  },
  "luminance": 0.09753
}

Semantic roles & 50–950 ramp

primary
#3E40DA
secondary
#DBDA99
accent
#E83DEB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3E40DA

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

Preview Lab → · Contrast checker → · Palette generator →

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