#3E40C1#3E40C1

#3E40C1 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.7% C 0.196 H 274.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#3E40C1
RGBrgb(62, 64, 193)
HSLhsl(239, 51%, 50%)
HSVhsv(239, 68%, 76%)
CMYKcmyk(67.9%, 66.8%, 0%, 24.3%)
CIE-LABlab(35.08, 40.32, -67.63)
CIE-LCHlch(35.08, 78.74, 300.80°)
OKLaboklab(45.71% 0.0162 -0.1953)
OKLCHoklch(45.71% 0.196 274.7)
XYZxyz(13.4425, 8.5400, 51.3817)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40C1 #C1BF3E
analogous
#3E81C1 #3E40C1 #7E3EC1
triadic
#3E40C1 #C13E40 #40C13E
tetradic
#3E40C1 #C13E81 #C1BF3E #3EC17E
square
#3E40C1 #C13E81 #C1BF3E #3EC17E
split-complementary
#3E40C1 #C17E3E #81C13E
monochromatic
#202164 #2F3193 #3E40C1 #6C6ED0 #9B9CDF

Accessibility & contrast

On white

7.75
#3E40C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3E40C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40C1
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40C1#FFFFFF#000000##FFFFFF
##3E40C11.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3e40c1;
/* rgb */ color: rgb(62, 64, 193);
/* oklch */ color: oklch(45.7% 0.196 274.7);
Tailwind
colors: {
  custom: {
    50: '#8475d5',
    500: '#3e40c1',
    950: '#000000',
  },
}
SCSS
$custom: #3e40c1;
$custom-light: #8475d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40c1",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 239.084,
    "s": 51.373,
    "l": 50
  },
  "oklch": {
    "l": 0.45705,
    "c": 0.19598,
    "h": 274.7
  },
  "luminance": 0.08541
}

Semantic roles & 50–950 ramp

primary
#3E40C1
secondary
#CBCA90
accent
#D94DDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3E40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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