#3F40D4#3F40D4

#3F40D4 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.219 H 273.9°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#3F40D4
RGBrgb(63, 64, 212)
HSLhsl(240, 63%, 54%)
HSVhsv(240, 70%, 83%)
CMYKcmyk(70.3%, 69.8%, 0%, 16.9%)
CIE-LABlab(36.88, 46.76, -75.72)
CIE-LCHlch(36.88, 88.99, 301.70°)
OKLaboklab(47.55% 0.015 -0.2189)
OKLCHoklch(47.55% 0.219 273.9)
XYZxyz(15.7630, 9.4755, 63.2728)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40D4 #D4D33F
analogous
#3F8BD4 #3F40D4 #893FD4
triadic
#3F40D4 #D43F40 #40D43F
tetradic
#3F40D4 #D43F8B #D4D33F #3FD489
square
#3F40D4 #D43F8B #D4D33F #3FD489
split-complementary
#3F40D4 #D4893F #8BD43F
monochromatic
#1C1D7D #2728AF #3F40D4 #7172DF #A3A3EA

Accessibility & contrast

On white

7.25
#3F40D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#3F40D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40D4
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40D4#FFFFFF#000000##FFFFFF
##3F40D41.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED8
Deuteranopia (green-blind)
#0050D1
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3f40d4;
/* rgb */ color: rgb(63, 64, 212);
/* oklch */ color: oklch(47.5% 0.219 273.9);
Tailwind
colors: {
  custom: {
    50: '#8976e2',
    500: '#3f40d4',
    950: '#000000',
  },
}
SCSS
$custom: #3f40d4;
$custom-light: #8976e2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40d4",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 239.597,
    "s": 63.404,
    "l": 53.922
  },
  "oklch": {
    "l": 0.4755,
    "c": 0.21942,
    "h": 273.9
  },
  "luminance": 0.09477
}

Semantic roles & 50–950 ramp

primary
#3F40D4
secondary
#D7D798
accent
#E541E6
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3F40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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