#3F40CA#3F40CA

#3F40CA is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.6% C 0.207 H 274.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#3F40CA
RGBrgb(63, 64, 202)
HSLhsl(240, 57%, 52%)
HSVhsv(240, 69%, 79%)
CMYKcmyk(68.8%, 68.3%, 0%, 20.8%)
CIE-LABlab(35.96, 43.45, -71.45)
CIE-LCHlch(35.96, 83.63, 301.31°)
OKLaboklab(46.6% 0.0163 -0.2064)
OKLCHoklch(46.6% 0.207 274.5)
XYZxyz(14.5404, 8.9865, 56.8339)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40CA #CAC93F
analogous
#3F86CA #3F40CA #833FCA
triadic
#3F40CA #CA3F40 #40CA3F
tetradic
#3F40CA #CA3F86 #CAC93F #3FCA83
square
#3F40CA #CA3F86 #CAC93F #3FCA83
split-complementary
#3F40CA #CA833F #86CA3F
monochromatic
#1F1F70 #2C2DA0 #3F40CA #6F70D7 #9F9FE4

Accessibility & contrast

On white

7.51
#3F40CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#3F40CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40CA
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40CA#FFFFFF#000000##FFFFFF
##3F40CA1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#004EC7
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3f40ca;
/* rgb */ color: rgb(63, 64, 202);
/* oklch */ color: oklch(46.6% 0.207 274.5);
Tailwind
colors: {
  custom: {
    50: '#8676db',
    500: '#3f40ca',
    950: '#000000',
  },
}
SCSS
$custom: #3f40ca;
$custom-light: #8676db;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40ca",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 239.568,
    "s": 56.735,
    "l": 51.961
  },
  "oklch": {
    "l": 0.46603,
    "c": 0.20708,
    "h": 274.5
  },
  "luminance": 0.08988
}

Semantic roles & 50–950 ramp

primary
#3F40CA
secondary
#D1D094
accent
#DF48E0
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3F40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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