#3F40C5#3F40C5

#3F40C5 is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.1% C 0.201 H 274.8°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#3F40C5
RGBrgb(63, 64, 197)
HSLhsl(240, 54%, 51%)
HSVhsv(240, 68%, 77%)
CMYKcmyk(68%, 67.5%, 0%, 22.7%)
CIE-LABlab(35.51, 41.79, -69.28)
CIE-LCHlch(35.51, 80.91, 301.10°)
OKLaboklab(46.14% 0.0169 -0.2001)
OKLCHoklch(46.14% 0.201 274.8)
XYZxyz(13.9580, 8.7535, 53.7665)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40C5 #C5C43F
analogous
#3F83C5 #3F40C5 #813FC5
triadic
#3F40C5 #C53F40 #40C53F
tetradic
#3F40C5 #C53F83 #C5C43F #3FC581
square
#3F40C5 #C53F83 #C5C43F #3FC581
split-complementary
#3F40C5 #C5813F #83C53F
monochromatic
#20206A #2E2F99 #3F40C5 #6E6FD3 #9D9EE1

Accessibility & contrast

On white

7.63
#3F40C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#3F40C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40C5
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40C5#FFFFFF#000000##FFFFFF
##3F40C51.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#004DC2
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3f40c5;
/* rgb */ color: rgb(63, 64, 197);
/* oklch */ color: oklch(46.1% 0.201 274.8);
Tailwind
colors: {
  custom: {
    50: '#8575d8',
    500: '#3f40c5',
    950: '#000000',
  },
}
SCSS
$custom: #3f40c5;
$custom-light: #8575d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40c5",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 239.552,
    "s": 53.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46137,
    "c": 0.20081,
    "h": 274.8
  },
  "luminance": 0.08755
}

Semantic roles & 50–950 ramp

primary
#3F40C5
secondary
#CECD92
accent
#DC4BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3F40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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