#3E40D4#3E40D4

#3E40D4 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.5% C 0.220 H 273.6°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#3E40D4
RGBrgb(62, 64, 212)
HSLhsl(239, 64%, 54%)
HSVhsv(239, 71%, 83%)
CMYKcmyk(70.8%, 69.8%, 0%, 16.9%)
CIE-LABlab(36.82, 46.65, -75.82)
CIE-LCHlch(36.82, 89.02, 301.60°)
OKLaboklab(47.49% 0.0138 -0.2192)
OKLCHoklch(47.49% 0.22 273.6)
XYZxyz(15.6997, 9.4429, 63.2699)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40D4 #D4D23E
analogous
#3E8BD4 #3E40D4 #873ED4
triadic
#3E40D4 #D43E40 #40D43E
tetradic
#3E40D4 #D43E8B #D4D23E #3ED487
square
#3E40D4 #D43E8B #D4D23E #3ED487
split-complementary
#3E40D4 #D4873E #8BD43E
monochromatic
#1C1D7C #2729AE #3E40D4 #7072DF #A2A3EA

Accessibility & contrast

On white

7.27
#3E40D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#3E40D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40D4
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40D4#FFFFFF#000000##FFFFFF
##3E40D41.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED8
Deuteranopia (green-blind)
#004FD1
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3e40d4;
/* rgb */ color: rgb(62, 64, 212);
/* oklch */ color: oklch(47.5% 0.220 273.6);
Tailwind
colors: {
  custom: {
    50: '#8876e2',
    500: '#3e40d4',
    950: '#000000',
  },
}
SCSS
$custom: #3e40d4;
$custom-light: #8876e2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40d4",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 239.2,
    "s": 63.559,
    "l": 53.725
  },
  "oklch": {
    "l": 0.4749,
    "c": 0.21968,
    "h": 273.6
  },
  "luminance": 0.09444
}

Semantic roles & 50–950 ramp

primary
#3E40D4
secondary
#D7D697
accent
#E441E7
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3E40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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