#3F40CB#3F40CB

#3F40CB is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.7% C 0.208 H 274.5°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#3F40CB
RGBrgb(63, 64, 203)
HSLhsl(240, 57%, 52%)
HSVhsv(240, 69%, 80%)
CMYKcmyk(69%, 68.5%, 0%, 20.4%)
CIE-LABlab(36.05, 43.79, -71.88)
CIE-LCHlch(36.05, 84.17, 301.35°)
OKLaboklab(46.7% 0.0162 -0.2077)
OKLCHoklch(46.7% 0.208 274.5)
XYZxyz(14.6592, 9.0340, 57.4595)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40CB #CBCA3F
analogous
#3F86CB #3F40CB #843FCB
triadic
#3F40CB #CB3F40 #40CB3F
tetradic
#3F40CB #CB3F86 #CBCA3F #3FCB84
square
#3F40CB #CB3F86 #CBCA3F #3FCB84
split-complementary
#3F40CB #CB843F #86CB3F
monochromatic
#1F1F71 #2C2CA1 #3F40CB #6F70D8 #9FA0E5

Accessibility & contrast

On white

7.48
#3F40CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#3F40CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40CB
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40CB#FFFFFF#000000##FFFFFF
##3F40CB1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#004EC8
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3f40cb;
/* rgb */ color: rgb(63, 64, 203);
/* oklch */ color: oklch(46.7% 0.208 274.5);
Tailwind
colors: {
  custom: {
    50: '#8776dc',
    500: '#3f40cb',
    950: '#000000',
  },
}
SCSS
$custom: #3f40cb;
$custom-light: #8776dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40cb",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 239.571,
    "s": 57.377,
    "l": 52.157
  },
  "oklch": {
    "l": 0.46696,
    "c": 0.20833,
    "h": 274.5
  },
  "luminance": 0.09035
}

Semantic roles & 50–950 ramp

primary
#3F40CB
secondary
#D1D194
accent
#E047E1
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3F40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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