#3F40C2#3F40C2

#3F40C2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.9% C 0.197 H 275.0°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#3F40C2
RGBrgb(63, 64, 194)
HSLhsl(240, 52%, 50%)
HSVhsv(240, 68%, 76%)
CMYKcmyk(67.5%, 67%, 0%, 23.9%)
CIE-LABlab(35.24, 40.78, -67.97)
CIE-LCHlch(35.24, 79.26, 300.97°)
OKLaboklab(45.86% 0.0173 -0.1962)
OKLCHoklch(45.86% 0.197 275)
XYZxyz(13.6177, 8.6174, 51.9742)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40C2 #C2C13F
analogous
#3F81C2 #3F40C2 #7F3FC2
triadic
#3F40C2 #C23F40 #40C23F
tetradic
#3F40C2 #C23F81 #C2C13F #3FC27F
square
#3F40C2 #C23F81 #C2C13F #3FC27F
split-complementary
#3F40C2 #C27F3F #81C23F
monochromatic
#202166 #2F3095 #3F40C2 #6D6ED1 #9C9CE0

Accessibility & contrast

On white

7.71
#3F40C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3F40C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40C2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40C2#FFFFFF#000000##FFFFFF
##3F40C21.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#004DC0
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3f40c2;
/* rgb */ color: rgb(63, 64, 194);
/* oklch */ color: oklch(45.9% 0.197 275.0);
Tailwind
colors: {
  custom: {
    50: '#8575d6',
    500: '#3f40c2',
    950: '#000000',
  },
}
SCSS
$custom: #3f40c2;
$custom-light: #8575d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40c2",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 239.542,
    "s": 51.779,
    "l": 50.392
  },
  "oklch": {
    "l": 0.45861,
    "c": 0.19701,
    "h": 275
  },
  "luminance": 0.08619
}

Semantic roles & 50–950 ramp

primary
#3F40C2
secondary
#CCCB91
accent
#DA4DDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3F40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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