#3F40BD#3F40BD

#3F40BD is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.191 H 275.4°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#3F40BD
RGBrgb(63, 64, 189)
HSLhsl(240, 50%, 49%)
HSVhsv(240, 67%, 74%)
CMYKcmyk(66.7%, 66.1%, 0%, 25.9%)
CIE-LABlab(34.80, 39.10, -65.76)
CIE-LCHlch(34.80, 76.50, 300.74°)
OKLaboklab(45.41% 0.0178 -0.1898)
OKLCHoklch(45.41% 0.191 275.4)
XYZxyz(13.0656, 8.3965, 49.0664)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40BD #BDBC3F
analogous
#3F7FBD #3F40BD #7D3FBD
triadic
#3F40BD #BD3F40 #40BD3F
tetradic
#3F40BD #BD3F7F #BDBC3F #3FBD7D
square
#3F40BD #BD3F7F #BDBC3F #3FBD7D
split-complementary
#3F40BD #BD7D3F #7FBD3F
monochromatic
#202161 #30308F #3F40BD #6B6CCE #999ADD

Accessibility & contrast

On white

7.84
#3F40BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3F40BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40BD
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40BD#FFFFFF#000000##FFFFFF
##3F40BD1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3f40bd;
/* rgb */ color: rgb(63, 64, 189);
/* oklch */ color: oklch(45.4% 0.191 275.4);
Tailwind
colors: {
  custom: {
    50: '#8475d2',
    500: '#3f40bd',
    950: '#000000',
  },
}
SCSS
$custom: #3f40bd;
$custom-light: #8475d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40bd",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 239.524,
    "s": 50,
    "l": 49.412
  },
  "oklch": {
    "l": 0.45405,
    "c": 0.19061,
    "h": 275.4
  },
  "luminance": 0.08398
}

Semantic roles & 50–950 ramp

primary
#3F40BD
secondary
#C9C98F
accent
#D84EDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3F40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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