#3F40C8#3F40C8

#3F40C8 is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.4% C 0.205 H 274.6°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#3F40C8
RGBrgb(63, 64, 200)
HSLhsl(240, 55%, 52%)
HSVhsv(240, 69%, 78%)
CMYKcmyk(68.5%, 68%, 0%, 21.6%)
CIE-LABlab(35.78, 42.79, -70.58)
CIE-LCHlch(35.78, 82.54, 301.23°)
OKLaboklab(46.42% 0.0166 -0.2039)
OKLCHoklch(46.42% 0.205 274.6)
XYZxyz(14.3052, 8.8924, 55.5949)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40C8 #C8C73F
analogous
#3F85C8 #3F40C8 #833FC8
triadic
#3F40C8 #C83F40 #40C83F
tetradic
#3F40C8 #C83F85 #C8C73F #3FC883
square
#3F40C8 #C83F85 #C8C73F #3FC883
split-complementary
#3F40C8 #C8833F #85C83F
monochromatic
#1F206D #2D2E9D #3F40C8 #6F6FD6 #9E9FE3

Accessibility & contrast

On white

7.56
#3F40C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#3F40C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40C8
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40C8#FFFFFF#000000##FFFFFF
##3F40C81.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#004EC5
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3f40c8;
/* rgb */ color: rgb(63, 64, 200);
/* oklch */ color: oklch(46.4% 0.205 274.6);
Tailwind
colors: {
  custom: {
    50: '#8676da',
    500: '#3f40c8',
    950: '#000000',
  },
}
SCSS
$custom: #3f40c8;
$custom-light: #8676da;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40c8",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 239.562,
    "s": 55.466,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46416,
    "c": 0.20458,
    "h": 274.6
  },
  "luminance": 0.08894
}

Semantic roles & 50–950 ramp

primary
#3F40C8
secondary
#D0CF93
accent
#DE49DF
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3F40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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