#3F40DB#3F40DB

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

Color values

HEX#3F40DB
RGBrgb(63, 64, 219)
HSLhsl(240, 68%, 55%)
HSVhsv(240, 71%, 86%)
CMYKcmyk(71.2%, 70.8%, 0%, 14.1%)
CIE-LABlab(37.55, 49.04, -78.65)
CIE-LCHlch(37.55, 92.69, 301.95°)
OKLaboklab(48.23% 0.014 -0.2275)
OKLCHoklch(48.23% 0.228 273.5)
XYZxyz(16.6652, 9.8364, 68.0244)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40DB #DBDA3F
analogous
#3F8EDB #3F40DB #8C3FDB
triadic
#3F40DB #DB3F40 #40DB3F
tetradic
#3F40DB #DB3F8E #DBDA3F #3FDB8C
square
#3F40DB #DB3F8E #DBDA3F #3FDB8C
split-complementary
#3F40DB #DB8C3F #8EDB3F
monochromatic
#191A86 #2324BA #3F40DB #7373E5 #A6A7EE

Accessibility & contrast

On white

7.08
#3F40DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#3F40DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40DB
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40DB#FFFFFF#000000##FFFFFF
##3F40DB1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f40db;
/* rgb */ color: rgb(63, 64, 219);
/* oklch */ color: oklch(48.2% 0.228 273.5);
Tailwind
colors: {
  custom: {
    50: '#8a76e7',
    500: '#3f40db',
    950: '#000000',
  },
}
SCSS
$custom: #3f40db;
$custom-light: #8a76e7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40db",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 239.615,
    "s": 68.421,
    "l": 55.294
  },
  "oklch": {
    "l": 0.48225,
    "c": 0.22791,
    "h": 273.5
  },
  "luminance": 0.09838
}

Semantic roles & 50–950 ramp

primary
#3F40DB
secondary
#DCDB9A
accent
#EA3DEB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #3F40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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