#3E40AE#3E40AE

#3E40AE is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.0% C 0.171 H 276.0°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#3E40AE
RGBrgb(62, 64, 174)
HSLhsl(239, 47%, 46%)
HSVhsv(239, 64%, 68%)
CMYKcmyk(64.4%, 63.2%, 0%, 31.8%)
CIE-LABlab(33.45, 33.86, -59.08)
CIE-LCHlch(33.45, 68.10, 299.81°)
OKLaboklab(44.01% 0.0178 -0.1702)
OKLCHoklch(44.01% 0.171 276)
XYZxyz(11.4575, 7.7460, 40.9275)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40AE #AEAC3E
analogous
#3E78AE #3E40AE #743EAE
triadic
#3E40AE #AE3E40 #40AE3E
tetradic
#3E40AE #AE3E78 #AEAC3E #3EAE74
square
#3E40AE #AE3E78 #AEAC3E #3EAE74
split-complementary
#3E40AE #AE743E #78AE3E
monochromatic
#1E1F54 #2E2F81 #3E40AE #6264C7 #8F91D7

Accessibility & contrast

On white

8.24
#3E40AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#3E40AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40AE
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40AE#FFFFFF#000000##FFFFFF
##3E40AE1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3e40ae;
/* rgb */ color: rgb(62, 64, 174);
/* oklch */ color: oklch(44.0% 0.171 276.0);
Tailwind
colors: {
  custom: {
    50: '#8075c7',
    500: '#3e40ae',
    950: '#000000',
  },
}
SCSS
$custom: #3e40ae;
$custom-light: #8075c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40ae",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 238.929,
    "s": 47.458,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44009,
    "c": 0.17117,
    "h": 276
  },
  "luminance": 0.07747
}

Semantic roles & 50–950 ramp

primary
#3E40AE
secondary
#C2C186
accent
#D551D7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3E40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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