#3940BF#3940BF

#3940BF is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.195 H 273.1°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#3940BF
RGBrgb(57, 64, 191)
HSLhsl(237, 54%, 49%)
HSVhsv(237, 70%, 75%)
CMYKcmyk(70.2%, 66.5%, 0%, 25.1%)
CIE-LABlab(34.59, 39.02, -67.28)
CIE-LCHlch(34.59, 77.77, 300.11°)
OKLaboklab(45.21% 0.0107 -0.1944)
OKLCHoklch(45.21% 0.195 273.1)
XYZxyz(12.9216, 8.2970, 50.2006)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940BF #BFB839
analogous
#3983BF #3940BF #7539BF
triadic
#3940BF #BF3940 #40BF39
tetradic
#3940BF #BF3983 #BFB839 #39BF75
square
#3940BF #BF3983 #BFB839 #39BF75
split-complementary
#3940BF #BF7539 #83BF39
monochromatic
#1D2061 #2B3090 #3940BF #646AD1 #9397DF

Accessibility & contrast

On white

7.90
#3940BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3940BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940BF
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940BF#FFFFFF#000000##FFFFFF
##3940BF1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#004BBD
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3940bf;
/* rgb */ color: rgb(57, 64, 191);
/* oklch */ color: oklch(45.2% 0.195 273.1);
Tailwind
colors: {
  custom: {
    50: '#8275d3',
    500: '#3940bf',
    950: '#000000',
  },
}
SCSS
$custom: #3940bf;
$custom-light: #8275d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3940bf",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 236.866,
    "s": 54.032,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45213,
    "c": 0.19467,
    "h": 273.1
  },
  "luminance": 0.08298
}

Semantic roles & 50–950 ramp

primary
#3940BF
secondary
#CAC78A
accent
#D64ADD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3940BF

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

Preview Lab → · Contrast checker → · Palette generator →

#3940BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva