#3F40CD#3F40CD

#3F40CD is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.9% C 0.211 H 274.3°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#3F40CD
RGBrgb(63, 64, 205)
HSLhsl(240, 59%, 53%)
HSVhsv(240, 69%, 80%)
CMYKcmyk(69.3%, 68.8%, 0%, 19.6%)
CIE-LABlab(36.23, 44.45, -72.74)
CIE-LCHlch(36.23, 85.25, 301.43°)
OKLaboklab(46.89% 0.0159 -0.2102)
OKLCHoklch(46.89% 0.211 274.3)
XYZxyz(14.8991, 9.1299, 58.7228)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40CD #CDCC3F
analogous
#3F87CD #3F40CD #853FCD
triadic
#3F40CD #CD3F40 #40CD3F
tetradic
#3F40CD #CD3F87 #CDCC3F #3FCD85
square
#3F40CD #CD3F87 #CDCC3F #3FCD85
split-complementary
#3F40CD #CD853F #87CD3F
monochromatic
#1E1F74 #2B2CA4 #3F40CD #7070DA #A0A1E6

Accessibility & contrast

On white

7.43
#3F40CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#3F40CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40CD
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40CD#FFFFFF#000000##FFFFFF
##3F40CD1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD1
Deuteranopia (green-blind)
#004FCA
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3f40cd;
/* rgb */ color: rgb(63, 64, 205);
/* oklch */ color: oklch(46.9% 0.211 274.3);
Tailwind
colors: {
  custom: {
    50: '#8776dd',
    500: '#3f40cd',
    950: '#000000',
  },
}
SCSS
$custom: #3f40cd;
$custom-light: #8776dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40cd",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 239.577,
    "s": 58.678,
    "l": 52.549
  },
  "oklch": {
    "l": 0.46885,
    "c": 0.21081,
    "h": 274.3
  },
  "luminance": 0.09131
}

Semantic roles & 50–950 ramp

primary
#3F40CD
secondary
#D3D295
accent
#E146E2
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3F40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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