#3F40D2#3F40D2

#3F40D2 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.4% C 0.217 H 274.0°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#3F40D2
RGBrgb(63, 64, 210)
HSLhsl(240, 62%, 54%)
HSVhsv(240, 70%, 82%)
CMYKcmyk(70%, 69.5%, 0%, 17.6%)
CIE-LABlab(36.70, 46.10, -74.87)
CIE-LCHlch(36.70, 87.93, 301.62°)
OKLaboklab(47.36% 0.0153 -0.2164)
OKLCHoklch(47.36% 0.217 274)
XYZxyz(15.5123, 9.3752, 61.9524)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40D2 #D2D13F
analogous
#3F89D2 #3F40D2 #873FD2
triadic
#3F40D2 #D23F40 #40D23F
tetradic
#3F40D2 #D23F89 #D2D13F #3FD287
square
#3F40D2 #D23F89 #D2D13F #3FD287
split-complementary
#3F40D2 #D2873F #89D23F
monochromatic
#1D1D7A #2829AC #3F40D2 #7171DE #A2A3E9

Accessibility & contrast

On white

7.30
#3F40D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#3F40D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40D2
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40D2#FFFFFF#000000##FFFFFF
##3F40D21.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#004FCF
Tritanopia (blue-blind)
#006884
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3f40d2;
/* rgb */ color: rgb(63, 64, 210);
/* oklch */ color: oklch(47.4% 0.217 274.0);
Tailwind
colors: {
  custom: {
    50: '#8876e1',
    500: '#3f40d2',
    950: '#000000',
  },
}
SCSS
$custom: #3f40d2;
$custom-light: #8876e1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40d2",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 239.592,
    "s": 62.025,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47359,
    "c": 0.21698,
    "h": 274
  },
  "luminance": 0.09377
}

Semantic roles & 50–950 ramp

primary
#3F40D2
secondary
#D6D597
accent
#E443E5
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0815
muted
#7E7B84

Preview Lab

Preview with #3F40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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