#3F40C0#3F40C0

#3F40C0 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.7% C 0.194 H 275.2°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#3F40C0
RGBrgb(63, 64, 192)
HSLhsl(240, 51%, 50%)
HSVhsv(240, 67%, 75%)
CMYKcmyk(67.2%, 66.7%, 0%, 24.7%)
CIE-LABlab(35.06, 40.11, -67.08)
CIE-LCHlch(35.06, 78.16, 300.88°)
OKLaboklab(45.68% 0.0175 -0.1937)
OKLCHoklch(45.68% 0.194 275.2)
XYZxyz(13.3946, 8.5281, 50.7992)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40C0 #C0BF3F
analogous
#3F80C0 #3F40C0 #7F3FC0
triadic
#3F40C0 #C03F40 #40C03F
tetradic
#3F40C0 #C03F80 #C0BF3F #3FC07F
square
#3F40C0 #C03F80 #C0BF3F #3FC07F
split-complementary
#3F40C0 #C07F3F #80C03F
monochromatic
#212164 #303192 #3F40C0 #6D6ECF #9B9CDE

Accessibility & contrast

On white

7.76
#3F40C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3F40C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40C0
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40C0#FFFFFF#000000##FFFFFF
##3F40C01.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#004DBE
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3f40c0;
/* rgb */ color: rgb(63, 64, 192);
/* oklch */ color: oklch(45.7% 0.194 275.2);
Tailwind
colors: {
  custom: {
    50: '#8475d4',
    500: '#3f40c0',
    950: '#000000',
  },
}
SCSS
$custom: #3f40c0;
$custom-light: #8475d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40c0",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 239.535,
    "s": 50.588,
    "l": 50
  },
  "oklch": {
    "l": 0.45678,
    "c": 0.19446,
    "h": 275.2
  },
  "luminance": 0.08529
}

Semantic roles & 50–950 ramp

primary
#3F40C0
secondary
#CACA91
accent
#D94EDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3F40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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