#3E40CC#3E40CC

#3E40CC is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.7% C 0.210 H 274.1°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#3E40CC
RGBrgb(62, 64, 204)
HSLhsl(239, 58%, 52%)
HSVhsv(239, 70%, 80%)
CMYKcmyk(69.6%, 68.6%, 0%, 20%)
CIE-LABlab(36.08, 44.00, -72.42)
CIE-LCHlch(36.08, 84.74, 301.29°)
OKLaboklab(46.73% 0.0149 -0.2093)
OKLCHoklch(46.73% 0.21 274.1)
XYZxyz(14.7155, 9.0492, 58.0862)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40CC #CCCA3E
analogous
#3E87CC #3E40CC #833ECC
triadic
#3E40CC #CC3E40 #40CC3E
tetradic
#3E40CC #CC3E87 #CCCA3E #3ECC83
square
#3E40CC #CC3E87 #CCCA3E #3ECC83
split-complementary
#3E40CC #CC833E #87CC3E
monochromatic
#1E1F72 #2B2CA2 #3E40CC #6E70D9 #9FA0E6

Accessibility & contrast

On white

7.47
#3E40CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#3E40CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40CC
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40CC#FFFFFF#000000##FFFFFF
##3E40CC1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#004EC9
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3e40cc;
/* rgb */ color: rgb(62, 64, 204);
/* oklch */ color: oklch(46.7% 0.210 274.1);
Tailwind
colors: {
  custom: {
    50: '#8676dd',
    500: '#3e40cc',
    950: '#000000',
  },
}
SCSS
$custom: #3e40cc;
$custom-light: #8676dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40cc",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 239.155,
    "s": 58.197,
    "l": 52.157
  },
  "oklch": {
    "l": 0.46729,
    "c": 0.20982,
    "h": 274.1
  },
  "luminance": 0.09051
}

Semantic roles & 50–950 ramp

primary
#3E40CC
secondary
#D2D194
accent
#DF46E1
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3E40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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