#3E40BA#3E40BA

#3E40BA is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.1% C 0.187 H 275.2°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#3E40BA
RGBrgb(62, 64, 186)
HSLhsl(239, 50%, 49%)
HSVhsv(239, 67%, 73%)
CMYKcmyk(66.7%, 65.6%, 0%, 27.1%)
CIE-LABlab(34.47, 37.95, -64.53)
CIE-LCHlch(34.47, 74.86, 300.46°)
OKLaboklab(45.07% 0.0169 -0.1862)
OKLCHoklch(45.07% 0.187 275.2)
XYZxyz(12.6800, 8.2350, 47.3661)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40BA #BAB83E
analogous
#3E7EBA #3E40BA #7A3EBA
triadic
#3E40BA #BA3E40 #40BA3E
tetradic
#3E40BA #BA3E7E #BAB83E #3EBA7A
square
#3E40BA #BA3E7E #BAB83E #3EBA7A
split-complementary
#3E40BA #BA7A3E #7EBA3E
monochromatic
#1F205E #2F308C #3E40BA #686ACD #9697DC

Accessibility & contrast

On white

7.93
#3E40BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3E40BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40BA
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40BA#FFFFFF#000000##FFFFFF
##3E40BA1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3e40ba;
/* rgb */ color: rgb(62, 64, 186);
/* oklch */ color: oklch(45.1% 0.187 275.2);
Tailwind
colors: {
  custom: {
    50: '#8375d0',
    500: '#3e40ba',
    950: '#000000',
  },
}
SCSS
$custom: #3e40ba;
$custom-light: #8375d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40ba",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 239.032,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45069,
    "c": 0.18698,
    "h": 275.2
  },
  "luminance": 0.08236
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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