#3F40BC#3F40BC

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

Color values

HEX#3F40BC
RGBrgb(63, 64, 188)
HSLhsl(240, 50%, 49%)
HSVhsv(240, 66%, 74%)
CMYKcmyk(66.5%, 66%, 0%, 26.3%)
CIE-LABlab(34.71, 38.76, -65.31)
CIE-LCHlch(34.71, 75.95, 300.69°)
OKLaboklab(45.32% 0.0179 -0.1885)
OKLCHoklch(45.32% 0.189 275.4)
XYZxyz(12.9574, 8.3533, 48.4967)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40BC #BCBB3F
analogous
#3F7FBC #3F40BC #7D3FBC
triadic
#3F40BC #BC3F40 #40BC3F
tetradic
#3F40BC #BC3F7F #BCBB3F #3FBC7D
square
#3F40BC #BC3F7F #BCBB3F #3FBC7D
split-complementary
#3F40BC #BC7D3F #7FBC3F
monochromatic
#202160 #30308E #3F40BC #6B6CCD #9999DD

Accessibility & contrast

On white

7.86
#3F40BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3F40BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40BC
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40BC#FFFFFF#000000##FFFFFF
##3F40BC1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3f40bc;
/* rgb */ color: rgb(63, 64, 188);
/* oklch */ color: oklch(45.3% 0.189 275.4);
Tailwind
colors: {
  custom: {
    50: '#8475d1',
    500: '#3f40bc',
    950: '#000000',
  },
}
SCSS
$custom: #3f40bc;
$custom-light: #8475d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40bc",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 239.52,
    "s": 49.801,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45315,
    "c": 0.18932,
    "h": 275.4
  },
  "luminance": 0.08354
}

Semantic roles & 50–950 ramp

primary
#3F40BC
secondary
#C9C88E
accent
#D84ED9
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3F40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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