#3E40DB#3E40DB

#3E40DB is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.2% C 0.228 H 273.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#3E40DB
RGBrgb(62, 64, 219)
HSLhsl(239, 69%, 55%)
HSVhsv(239, 72%, 86%)
CMYKcmyk(71.7%, 70.8%, 0%, 14.1%)
CIE-LABlab(37.49, 48.95, -78.75)
CIE-LCHlch(37.49, 92.72, 301.86°)
OKLaboklab(48.17% 0.0128 -0.2278)
OKLCHoklch(48.17% 0.228 273.2)
XYZxyz(16.6019, 9.8037, 68.0215)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40DB #DBD93E
analogous
#3E8EDB #3E40DB #8B3EDB
triadic
#3E40DB #DB3E40 #40DB3E
tetradic
#3E40DB #DB3E8E #DBD93E #3EDB8B
square
#3E40DB #DB3E8E #DBD93E #3EDB8B
split-complementary
#3E40DB #DB8B3E #8EDB3E
monochromatic
#191A86 #2324B9 #3E40DB #7273E5 #A5A6EE

Accessibility & contrast

On white

7.09
#3E40DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#3E40DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40DB
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40DB#FFFFFF#000000##FFFFFF
##3E40DB1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E0
Deuteranopia (green-blind)
#0051D8
Tritanopia (blue-blind)
#006C89
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3e40db;
/* rgb */ color: rgb(62, 64, 219);
/* oklch */ color: oklch(48.2% 0.228 273.2);
Tailwind
colors: {
  custom: {
    50: '#8a76e7',
    500: '#3e40db',
    950: '#000000',
  },
}
SCSS
$custom: #3e40db;
$custom-light: #8a76e7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40db",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 239.236,
    "s": 68.559,
    "l": 55.098
  },
  "oklch": {
    "l": 0.48167,
    "c": 0.22815,
    "h": 273.2
  },
  "luminance": 0.09805
}

Semantic roles & 50–950 ramp

primary
#3E40DB
secondary
#DBDA99
accent
#E93CEB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #3E40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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