#3F40BE#3F40BE

#3F40BE is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.5% C 0.192 H 275.3°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#3F40BE
RGBrgb(63, 64, 190)
HSLhsl(240, 50%, 50%)
HSVhsv(240, 67%, 75%)
CMYKcmyk(66.8%, 66.3%, 0%, 25.5%)
CIE-LABlab(34.88, 39.44, -66.20)
CIE-LCHlch(34.88, 77.06, 300.78°)
OKLaboklab(45.5% 0.0177 -0.1911)
OKLCHoklch(45.5% 0.192 275.3)
XYZxyz(13.1745, 8.4401, 49.6400)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40BE #BEBD3F
analogous
#3F7FBE #3F40BE #7E3FBE
triadic
#3F40BE #BE3F40 #40BE3F
tetradic
#3F40BE #BE3F7F #BEBD3F #3FBE7E
square
#3F40BE #BE3F7F #BEBD3F #3FBE7E
split-complementary
#3F40BE #BE7E3F #7FBE3F
monochromatic
#212162 #303190 #3F40BE #6C6DCE #9A9ADD

Accessibility & contrast

On white

7.81
#3F40BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#3F40BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40BE
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40BE#FFFFFF#000000##FFFFFF
##3F40BE1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f40be;
/* rgb */ color: rgb(63, 64, 190);
/* oklch */ color: oklch(45.5% 0.192 275.3);
Tailwind
colors: {
  custom: {
    50: '#8475d3',
    500: '#3f40be',
    950: '#000000',
  },
}
SCSS
$custom: #3f40be;
$custom-light: #8475d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40be",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 239.528,
    "s": 50.198,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45496,
    "c": 0.1919,
    "h": 275.3
  },
  "luminance": 0.08441
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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