#3F40CF#3F40CF

#3F40CF is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 47.1% C 0.213 H 274.2°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#3F40CF
RGBrgb(63, 64, 207)
HSLhsl(240, 60%, 53%)
HSVhsv(240, 70%, 81%)
CMYKcmyk(69.6%, 69.1%, 0%, 18.8%)
CIE-LABlab(36.42, 45.11, -73.59)
CIE-LCHlch(36.42, 86.32, 301.51°)
OKLaboklab(47.07% 0.0157 -0.2127)
OKLCHoklch(47.07% 0.213 274.2)
XYZxyz(15.1420, 9.2271, 60.0024)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40CF #CFCE3F
analogous
#3F88CF #3F40CF #863FCF
triadic
#3F40CF #CF3F40 #40CF3F
tetradic
#3F40CF #CF3F88 #CFCE3F #3FCF86
square
#3F40CF #CF3F88 #CFCE3F #3FCF86
split-complementary
#3F40CF #CF863F #88CF3F
monochromatic
#1E1E76 #2A2BA7 #3F40CF #7071DB #A1A1E7

Accessibility & contrast

On white

7.38
#3F40CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#3F40CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40CF
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40CF#FFFFFF#000000##FFFFFF
##3F40CF1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f40cf;
/* rgb */ color: rgb(63, 64, 207);
/* oklch */ color: oklch(47.1% 0.213 274.2);
Tailwind
colors: {
  custom: {
    50: '#8776df',
    500: '#3f40cf',
    950: '#000000',
  },
}
SCSS
$custom: #3f40cf;
$custom-light: #8776df;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40cf",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 239.583,
    "s": 60,
    "l": 52.941
  },
  "oklch": {
    "l": 0.47074,
    "c": 0.21329,
    "h": 274.2
  },
  "luminance": 0.09229
}

Semantic roles & 50–950 ramp

primary
#3F40CF
secondary
#D4D496
accent
#E245E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3F40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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