#3F40D5#3F40D5

#3F40D5 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.6% C 0.221 H 273.9°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#3F40D5
RGBrgb(63, 64, 213)
HSLhsl(240, 64%, 54%)
HSVhsv(240, 70%, 84%)
CMYKcmyk(70.4%, 70%, 0%, 16.5%)
CIE-LABlab(36.98, 47.09, -76.14)
CIE-LCHlch(36.98, 89.52, 301.73°)
OKLaboklab(47.65% 0.0149 -0.2201)
OKLCHoklch(47.65% 0.221 273.9)
XYZxyz(15.8895, 9.5261, 63.9392)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40D5 #D5D43F
analogous
#3F8BD5 #3F40D5 #893FD5
triadic
#3F40D5 #D53F40 #40D53F
tetradic
#3F40D5 #D53F8B #D5D43F #3FD589
square
#3F40D5 #D53F8B #D5D43F #3FD589
split-complementary
#3F40D5 #D5893F #8BD53F
monochromatic
#1C1C7E #2727B0 #3F40D5 #7172E0 #A3A4EB

Accessibility & contrast

On white

7.23
#3F40D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#3F40D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40D5
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40D5#FFFFFF#000000##FFFFFF
##3F40D51.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED9
Deuteranopia (green-blind)
#0050D2
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3f40d5;
/* rgb */ color: rgb(63, 64, 213);
/* oklch */ color: oklch(47.6% 0.221 273.9);
Tailwind
colors: {
  custom: {
    50: '#8976e3',
    500: '#3f40d5',
    950: '#000000',
  },
}
SCSS
$custom: #3f40d5;
$custom-light: #8976e3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40d5",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 239.6,
    "s": 64.103,
    "l": 54.118
  },
  "oklch": {
    "l": 0.47646,
    "c": 0.22065,
    "h": 273.9
  },
  "luminance": 0.09528
}

Semantic roles & 50–950 ramp

primary
#3F40D5
secondary
#D8D798
accent
#E641E7
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3F40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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