#3F40B4#3F40B4

#3F40B4 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.179 H 276.0°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#3F40B4
RGBrgb(63, 64, 180)
HSLhsl(239, 48%, 48%)
HSVhsv(239, 65%, 71%)
CMYKcmyk(65%, 64.4%, 0%, 29.4%)
CIE-LABlab(34.02, 36.05, -61.71)
CIE-LCHlch(34.02, 71.47, 300.30°)
OKLaboklab(44.6% 0.0186 -0.1779)
OKLCHoklch(44.6% 0.179 276)
XYZxyz(12.1188, 8.0178, 44.0801)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40B4 #B4B33F
analogous
#3F7BB4 #3F40B4 #783FB4
triadic
#3F40B4 #B43F40 #40B43F
tetradic
#3F40B4 #B43F7B #B4B33F #3FB478
square
#3F40B4 #B43F7B #B4B33F #3FB478
split-complementary
#3F40B4 #B4783F #7BB43F
monochromatic
#1F2059 #2F3087 #3F40B4 #6767CA #9494DA

Accessibility & contrast

On white

8.07
#3F40B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#3F40B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40B4
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40B4#FFFFFF#000000##FFFFFF
##3F40B41.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3f40b4;
/* rgb */ color: rgb(63, 64, 180);
/* oklch */ color: oklch(44.6% 0.179 276.0);
Tailwind
colors: {
  custom: {
    50: '#8275cb',
    500: '#3f40b4',
    950: '#000000',
  },
}
SCSS
$custom: #3f40b4;
$custom-light: #8275cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40b4",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 239.487,
    "s": 48.148,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44601,
    "c": 0.17889,
    "h": 276
  },
  "luminance": 0.08019
}

Semantic roles & 50–950 ramp

primary
#3F40B4
secondary
#C5C48A
accent
#D750D8
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #3F40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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