#3E40BB#3E40BB

#3E40BB is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.188 H 275.1°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#3E40BB
RGBrgb(62, 64, 187)
HSLhsl(239, 50%, 49%)
HSVhsv(239, 67%, 73%)
CMYKcmyk(66.8%, 65.8%, 0%, 26.7%)
CIE-LABlab(34.55, 38.29, -64.98)
CIE-LCHlch(34.55, 75.42, 300.51°)
OKLaboklab(45.16% 0.0168 -0.1875)
OKLCHoklch(45.16% 0.188 275.1)
XYZxyz(12.7867, 8.2776, 47.9280)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40BB #BBB93E
analogous
#3E7FBB #3E40BB #7B3EBB
triadic
#3E40BB #BB3E40 #40BB3E
tetradic
#3E40BB #BB3E7F #BBB93E #3EBB7B
square
#3E40BB #BB3E7F #BBB93E #3EBB7B
split-complementary
#3E40BB #BB7B3E #7FBB3E
monochromatic
#20215F #2F308D #3E40BB #696BCD #9798DC

Accessibility & contrast

On white

7.91
#3E40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3E40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40BB
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40BB#FFFFFF#000000##FFFFFF
##3E40BB1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3e40bb;
/* rgb */ color: rgb(62, 64, 187);
/* oklch */ color: oklch(45.2% 0.188 275.1);
Tailwind
colors: {
  custom: {
    50: '#8375d0',
    500: '#3e40bb',
    950: '#000000',
  },
}
SCSS
$custom: #3e40bb;
$custom-light: #8375d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40bb",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 239.04,
    "s": 50.201,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45159,
    "c": 0.18827,
    "h": 275.1
  },
  "luminance": 0.08279
}

Semantic roles & 50–950 ramp

primary
#3E40BB
secondary
#C8C78D
accent
#D74EDA
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3E40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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