#3F40F1#3F40F1

#3F40F1 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.4% C 0.254 H 272.4°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#3F40F1
RGBrgb(63, 64, 241)
HSLhsl(240, 86%, 60%)
HSVhsv(240, 74%, 95%)
CMYKcmyk(73.9%, 73.4%, 0%, 5.5%)
CIE-LABlab(39.70, 56.08, -87.61)
CIE-LCHlch(39.70, 104.02, 302.62°)
OKLaboklab(50.4% 0.0104 -0.2536)
OKLCHoklch(50.4% 0.254 272.4)
XYZxyz(19.7551, 11.0723, 84.2981)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40F1 #F1F03F
analogous
#3F99F1 #3F40F1 #973FF1
triadic
#3F40F1 #F13F40 #40F13F
tetradic
#3F40F1 #F13F99 #F1F03F #3FF197
square
#3F40F1 #F13F99 #F1F03F #3FF197
split-complementary
#3F40F1 #F1973F #99F13F
monochromatic
#0C0DA9 #1112E2 #3F40F1 #7879F5 #B1B1F9

Accessibility & contrast

On white

6.53
#3F40F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#3F40F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F40F1
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40F1#FFFFFF#000000##FFFFFF
##3F40F11.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066F6
Deuteranopia (green-blind)
#0055EE
Tritanopia (blue-blind)
#007496
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3f40f1;
/* rgb */ color: rgb(63, 64, 241);
/* oklch */ color: oklch(50.4% 0.254 272.4);
Tailwind
colors: {
  custom: {
    50: '#8f77f7',
    500: '#3f40f1',
    950: '#000000',
  },
}
SCSS
$custom: #3f40f1;
$custom-light: #8f77f7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40f1",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 241
  },
  "hsl": {
    "h": 239.663,
    "s": 86.408,
    "l": 59.608
  },
  "oklch": {
    "l": 0.50404,
    "c": 0.25377,
    "h": 272.4
  },
  "luminance": 0.11074
}

Semantic roles & 50–950 ramp

primary
#3F40F1
secondary
#E8E8A3
accent
#FB2BFD
background
#F9F7FF
surface
#F2EDFF
border
#CCC8D7
text
#0F0917
muted
#7E7B85

Preview Lab

Preview with #3F40F1

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

Preview Lab → · Contrast checker → · Palette generator →

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