#3E40CA#3E40CA

#3E40CA is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.5% C 0.207 H 274.2°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#3E40CA
RGBrgb(62, 64, 202)
HSLhsl(239, 57%, 52%)
HSVhsv(239, 69%, 79%)
CMYKcmyk(69.3%, 68.3%, 0%, 20.8%)
CIE-LABlab(35.90, 43.34, -71.55)
CIE-LCHlch(35.90, 83.66, 301.20°)
OKLaboklab(46.54% 0.0152 -0.2068)
OKLCHoklch(46.54% 0.207 274.2)
XYZxyz(14.4771, 8.9538, 56.8310)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40CA #CAC83E
analogous
#3E86CA #3E40CA #823ECA
triadic
#3E40CA #CA3E40 #40CA3E
tetradic
#3E40CA #CA3E86 #CAC83E #3ECA82
square
#3E40CA #CA3E86 #CAC83E #3ECA82
split-complementary
#3E40CA #CA823E #86CA3E
monochromatic
#1F206F #2C2D9F #3E40CA #6E70D7 #9E9FE4

Accessibility & contrast

On white

7.52
#3E40CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#3E40CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40CA
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40CA#FFFFFF#000000##FFFFFF
##3E40CA1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#004EC7
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3e40ca;
/* rgb */ color: rgb(62, 64, 202);
/* oklch */ color: oklch(46.5% 0.207 274.2);
Tailwind
colors: {
  custom: {
    50: '#8676db',
    500: '#3e40ca',
    950: '#000000',
  },
}
SCSS
$custom: #3e40ca;
$custom-light: #8676db;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40ca",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 239.143,
    "s": 56.911,
    "l": 51.765
  },
  "oklch": {
    "l": 0.46541,
    "c": 0.20733,
    "h": 274.2
  },
  "luminance": 0.08955
}

Semantic roles & 50–950 ramp

primary
#3E40CA
secondary
#D1D093
accent
#DE48E0
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3E40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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