#3F40D0#3F40D0

#3F40D0 is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.2% C 0.215 H 274.2°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#3F40D0
RGBrgb(63, 64, 208)
HSLhsl(240, 61%, 53%)
HSVhsv(240, 70%, 82%)
CMYKcmyk(69.7%, 69.2%, 0%, 18.4%)
CIE-LABlab(36.51, 45.44, -74.02)
CIE-LCHlch(36.51, 86.86, 301.55°)
OKLaboklab(47.17% 0.0155 -0.214)
OKLCHoklch(47.17% 0.215 274.2)
XYZxyz(15.2647, 9.2762, 60.6483)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40D0 #D0CF3F
analogous
#3F88D0 #3F40D0 #863FD0
triadic
#3F40D0 #D03F40 #40D03F
tetradic
#3F40D0 #D03F88 #D0CF3F #3FD086
square
#3F40D0 #D03F88 #D0CF3F #3FD086
split-complementary
#3F40D0 #D0863F #88D03F
monochromatic
#1D1E77 #292AA9 #3F40D0 #7071DC #A1A2E8

Accessibility & contrast

On white

7.35
#3F40D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#3F40D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40D0
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40D0#FFFFFF#000000##FFFFFF
##3F40D01.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD4
Deuteranopia (green-blind)
#004FCD
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3f40d0;
/* rgb */ color: rgb(63, 64, 208);
/* oklch */ color: oklch(47.2% 0.215 274.2);
Tailwind
colors: {
  custom: {
    50: '#8876e0',
    500: '#3f40d0',
    950: '#000000',
  },
}
SCSS
$custom: #3f40d0;
$custom-light: #8876e0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40d0",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 239.586,
    "s": 60.669,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47168,
    "c": 0.21452,
    "h": 274.2
  },
  "luminance": 0.09278
}

Semantic roles & 50–950 ramp

primary
#3F40D0
secondary
#D5D496
accent
#E344E4
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3F40D0

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

Preview Lab → · Contrast checker → · Palette generator →

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