#3F40CC#3F40CC

#3F40CC is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.8% C 0.210 H 274.4°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#3F40CC
RGBrgb(63, 64, 204)
HSLhsl(240, 58%, 52%)
HSVhsv(240, 69%, 80%)
CMYKcmyk(69.1%, 68.6%, 0%, 20%)
CIE-LABlab(36.14, 44.12, -72.31)
CIE-LCHlch(36.14, 84.71, 301.39°)
OKLaboklab(46.79% 0.0161 -0.209)
OKLCHoklch(46.79% 0.21 274.4)
XYZxyz(14.7788, 9.0818, 58.0892)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40CC #CCCB3F
analogous
#3F87CC #3F40CC #843FCC
triadic
#3F40CC #CC3F40 #40CC3F
tetradic
#3F40CC #CC3F87 #CCCB3F #3FCC84
square
#3F40CC #CC3F87 #CCCB3F #3FCC84
split-complementary
#3F40CC #CC843F #87CC3F
monochromatic
#1E1F72 #2B2CA3 #3F40CC #6F70D9 #A0A0E6

Accessibility & contrast

On white

7.46
#3F40CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#3F40CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40CC
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40CC#FFFFFF#000000##FFFFFF
##3F40CC1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f40cc;
/* rgb */ color: rgb(63, 64, 204);
/* oklch */ color: oklch(46.8% 0.210 274.4);
Tailwind
colors: {
  custom: {
    50: '#8776dd',
    500: '#3f40cc',
    950: '#000000',
  },
}
SCSS
$custom: #3f40cc;
$custom-light: #8776dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40cc",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 239.574,
    "s": 58.025,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4679,
    "c": 0.20958,
    "h": 274.4
  },
  "luminance": 0.09083
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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