#3E40B2#3E40B2

#3E40B2 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.176 H 275.7°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#3E40B2
RGBrgb(62, 64, 178)
HSLhsl(239, 48%, 47%)
HSVhsv(239, 65%, 70%)
CMYKcmyk(65.2%, 64%, 0%, 30.2%)
CIE-LABlab(33.78, 35.23, -60.92)
CIE-LCHlch(33.78, 70.37, 300.04°)
OKLaboklab(44.36% 0.0176 -0.1756)
OKLCHoklch(44.36% 0.177 275.7)
XYZxyz(11.8533, 7.9043, 43.0119)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40B2 #B2B03E
analogous
#3E7AB2 #3E40B2 #763EB2
triadic
#3E40B2 #B23E40 #40B23E
tetradic
#3E40B2 #B23E7A #B2B03E #3EB276
square
#3E40B2 #B23E7A #B2B03E #3EB276
split-complementary
#3E40B2 #B2763E #7AB23E
monochromatic
#1E1F57 #2E3085 #3E40B2 #6466C9 #9293D9

Accessibility & contrast

On white

8.14
#3E40B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#3E40B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40B2
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40B2#FFFFFF#000000##FFFFFF
##3E40B21.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3e40b2;
/* rgb */ color: rgb(62, 64, 178);
/* oklch */ color: oklch(44.4% 0.176 275.7);
Tailwind
colors: {
  custom: {
    50: '#8175ca',
    500: '#3e40b2',
    950: '#000000',
  },
}
SCSS
$custom: #3e40b2;
$custom-light: #8175ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40b2",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 238.966,
    "s": 48.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44358,
    "c": 0.1765,
    "h": 275.7
  },
  "luminance": 0.07905
}

Semantic roles & 50–950 ramp

primary
#3E40B2
secondary
#C4C388
accent
#D650D8
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #3E40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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