#3E40BF#3E40BF

#3E40BF is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.5% C 0.193 H 274.9°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#3E40BF
RGBrgb(62, 64, 191)
HSLhsl(239, 51%, 50%)
HSVhsv(239, 68%, 75%)
CMYKcmyk(67.5%, 66.5%, 0%, 25.1%)
CIE-LABlab(34.91, 39.65, -66.75)
CIE-LCHlch(34.91, 77.64, 300.71°)
OKLaboklab(45.52% 0.0164 -0.1927)
OKLCHoklch(45.52% 0.193 274.9)
XYZxyz(13.2209, 8.4513, 50.2146)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40BF #BFBD3E
analogous
#3E80BF #3E40BF #7D3EBF
triadic
#3E40BF #BF3E40 #40BF3E
tetradic
#3E40BF #BF3E80 #BFBD3E #3EBF7D
square
#3E40BF #BF3E80 #BFBD3E #3EBF7D
split-complementary
#3E40BF #BF7D3E #80BF3E
monochromatic
#202163 #2F3191 #3E40BF #6B6DCF #999ADE

Accessibility & contrast

On white

7.80
#3E40BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#3E40BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40BF
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40BF#FFFFFF#000000##FFFFFF
##3E40BF1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#004CBD
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3e40bf;
/* rgb */ color: rgb(62, 64, 191);
/* oklch */ color: oklch(45.5% 0.193 274.9);
Tailwind
colors: {
  custom: {
    50: '#8475d3',
    500: '#3e40bf',
    950: '#000000',
  },
}
SCSS
$custom: #3e40bf;
$custom-light: #8475d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40bf",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 239.07,
    "s": 50.988,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45522,
    "c": 0.19342,
    "h": 274.9
  },
  "luminance": 0.08453
}

Semantic roles & 50–950 ramp

primary
#3E40BF
secondary
#CAC98F
accent
#D84DDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3E40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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