#3F40D6#3F40D6

#3F40D6 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.7% C 0.222 H 273.8°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#3F40D6
RGBrgb(63, 64, 214)
HSLhsl(240, 65%, 54%)
HSVhsv(240, 71%, 84%)
CMYKcmyk(70.6%, 70.1%, 0%, 16.1%)
CIE-LABlab(37.07, 47.41, -76.56)
CIE-LCHlch(37.07, 90.05, 301.77°)
OKLaboklab(47.74% 0.0147 -0.2214)
OKLCHoklch(47.74% 0.222 273.8)
XYZxyz(16.0168, 9.5770, 64.6097)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40D6 #D6D53F
analogous
#3F8BD6 #3F40D6 #8A3FD6
triadic
#3F40D6 #D63F40 #40D63F
tetradic
#3F40D6 #D63F8B #D6D53F #3FD68A
square
#3F40D6 #D63F8B #D6D53F #3FD68A
split-complementary
#3F40D6 #D68A3F #8BD63F
monochromatic
#1B1C7F #2627B2 #3F40D6 #7172E1 #A4A4EC

Accessibility & contrast

On white

7.20
#3F40D6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#3F40D6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40D6
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40D6#FFFFFF#000000##FFFFFF
##3F40D61.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDB
Deuteranopia (green-blind)
#0050D3
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3f40d6;
/* rgb */ color: rgb(63, 64, 214);
/* oklch */ color: oklch(47.7% 0.222 273.8);
Tailwind
colors: {
  custom: {
    50: '#8976e4',
    500: '#3f40d6',
    950: '#000000',
  },
}
SCSS
$custom: #3f40d6;
$custom-light: #8976e4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40d6",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 239.603,
    "s": 64.807,
    "l": 54.314
  },
  "oklch": {
    "l": 0.47742,
    "c": 0.22186,
    "h": 273.8
  },
  "luminance": 0.09579
}

Semantic roles & 50–950 ramp

primary
#3F40D6
secondary
#D8D898
accent
#E740E8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3F40D6

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

Preview Lab → · Contrast checker → · Palette generator →

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