#3F40D8#3F40D8

#3F40D8 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.224 H 273.7°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#3F40D8
RGBrgb(63, 64, 216)
HSLhsl(240, 66%, 55%)
HSVhsv(240, 71%, 85%)
CMYKcmyk(70.8%, 70.4%, 0%, 15.3%)
CIE-LABlab(37.26, 48.07, -77.40)
CIE-LCHlch(37.26, 91.11, 301.84°)
OKLaboklab(47.94% 0.0144 -0.2238)
OKLCHoklch(47.94% 0.224 273.7)
XYZxyz(16.2738, 9.6798, 65.9632)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40D8 #D8D73F
analogous
#3F8CD8 #3F40D8 #8B3FD8
triadic
#3F40D8 #D83F40 #40D83F
tetradic
#3F40D8 #D83F8C #D8D73F #3FD88B
square
#3F40D8 #D83F8C #D8D73F #3FD88B
split-complementary
#3F40D8 #D88B3F #8CD83F
monochromatic
#1A1B82 #2526B5 #3F40D8 #7273E2 #A5A5ED

Accessibility & contrast

On white

7.15
#3F40D8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#3F40D8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40D8
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40D8#FFFFFF#000000##FFFFFF
##3F40D81.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDD
Deuteranopia (green-blind)
#0050D5
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3f40d8;
/* rgb */ color: rgb(63, 64, 216);
/* oklch */ color: oklch(47.9% 0.224 273.7);
Tailwind
colors: {
  custom: {
    50: '#8976e5',
    500: '#3f40d8',
    950: '#000000',
  },
}
SCSS
$custom: #3f40d8;
$custom-light: #8976e5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40d8",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 239.608,
    "s": 66.234,
    "l": 54.706
  },
  "oklch": {
    "l": 0.47935,
    "c": 0.22428,
    "h": 273.7
  },
  "luminance": 0.09681
}

Semantic roles & 50–950 ramp

primary
#3F40D8
secondary
#DAD999
accent
#E83FE9
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3F40D8

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

Preview Lab → · Contrast checker → · Palette generator →

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