#3F40CE#3F40CE

#3F40CE is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 47.0% C 0.212 H 274.3°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#3F40CE
RGBrgb(63, 64, 206)
HSLhsl(240, 59%, 53%)
HSVhsv(240, 69%, 81%)
CMYKcmyk(69.4%, 68.9%, 0%, 19.2%)
CIE-LABlab(36.33, 44.78, -73.17)
CIE-LCHlch(36.33, 85.78, 301.47°)
OKLaboklab(46.98% 0.0158 -0.2115)
OKLCHoklch(46.98% 0.212 274.3)
XYZxyz(15.0202, 9.1784, 59.3606)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40CE #CECD3F
analogous
#3F88CE #3F40CE #853FCE
triadic
#3F40CE #CE3F40 #40CE3F
tetradic
#3F40CE #CE3F88 #CECD3F #3FCE85
square
#3F40CE #CE3F88 #CECD3F #3FCE85
split-complementary
#3F40CE #CE853F #88CE3F
monochromatic
#1E1E75 #2A2BA6 #3F40CE #7071DA #A1A1E7

Accessibility & contrast

On white

7.40
#3F40CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#3F40CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40CE
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40CE#FFFFFF#000000##FFFFFF
##3F40CE1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#004FCB
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3f40ce;
/* rgb */ color: rgb(63, 64, 206);
/* oklch */ color: oklch(47.0% 0.212 274.3);
Tailwind
colors: {
  custom: {
    50: '#8776de',
    500: '#3f40ce',
    950: '#000000',
  },
}
SCSS
$custom: #3f40ce;
$custom-light: #8776de;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40ce",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 239.58,
    "s": 59.336,
    "l": 52.745
  },
  "oklch": {
    "l": 0.46979,
    "c": 0.21206,
    "h": 274.3
  },
  "luminance": 0.0918
}

Semantic roles & 50–950 ramp

primary
#3F40CE
secondary
#D3D395
accent
#E145E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3F40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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