#3E40BD#3E40BD

#3E40BD is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.3% C 0.191 H 275.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#3E40BD
RGBrgb(62, 64, 189)
HSLhsl(239, 51%, 49%)
HSVhsv(239, 67%, 74%)
CMYKcmyk(67.2%, 66.1%, 0%, 25.9%)
CIE-LABlab(34.73, 38.97, -65.87)
CIE-LCHlch(34.73, 76.53, 300.61°)
OKLaboklab(45.34% 0.0166 -0.1901)
OKLCHoklch(45.34% 0.191 275)
XYZxyz(13.0023, 8.3639, 49.0634)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40BD #BDBB3E
analogous
#3E80BD #3E40BD #7C3EBD
triadic
#3E40BD #BD3E40 #40BD3E
tetradic
#3E40BD #BD3E80 #BDBB3E #3EBD7C
square
#3E40BD #BD3E80 #BDBB3E #3EBD7C
split-complementary
#3E40BD #BD7C3E #80BD3E
monochromatic
#202161 #2F308F #3E40BD #6A6CCE #9899DD

Accessibility & contrast

On white

7.86
#3E40BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3E40BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40BD
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40BD#FFFFFF#000000##FFFFFF
##3E40BD1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3e40bd;
/* rgb */ color: rgb(62, 64, 189);
/* oklch */ color: oklch(45.3% 0.191 275.0);
Tailwind
colors: {
  custom: {
    50: '#8375d2',
    500: '#3e40bd',
    950: '#000000',
  },
}
SCSS
$custom: #3e40bd;
$custom-light: #8375d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40bd",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 239.055,
    "s": 50.598,
    "l": 49.216
  },
  "oklch": {
    "l": 0.4534,
    "c": 0.19085,
    "h": 275
  },
  "luminance": 0.08365
}

Semantic roles & 50–950 ramp

primary
#3E40BD
secondary
#C9C88E
accent
#D84EDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3E40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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