#3940BD#3940BD

#3940BD is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.0% C 0.192 H 273.2°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#3940BD
RGBrgb(57, 64, 189)
HSLhsl(237, 54%, 48%)
HSVhsv(237, 70%, 74%)
CMYKcmyk(69.8%, 66.1%, 0%, 25.9%)
CIE-LABlab(34.42, 38.33, -66.39)
CIE-LCHlch(34.42, 76.66, 300.00°)
OKLaboklab(45.03% 0.0108 -0.1918)
OKLCHoklch(45.03% 0.192 273.2)
XYZxyz(12.7030, 8.2096, 49.0494)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940BD #BDB639
analogous
#3982BD #3940BD #7439BD
triadic
#3940BD #BD3940 #40BD39
tetradic
#3940BD #BD3982 #BDB639 #39BD74
square
#3940BD #BD3982 #BDB639 #39BD74
split-complementary
#3940BD #BD7439 #82BD39
monochromatic
#1D205F #2B308E #3940BD #6369D0 #9296DE

Accessibility & contrast

On white

7.95
#3940BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3940BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940BD
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940BD#FFFFFF#000000##FFFFFF
##3940BD1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#004BBB
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3940bd;
/* rgb */ color: rgb(57, 64, 189);
/* oklch */ color: oklch(45.0% 0.192 273.2);
Tailwind
colors: {
  custom: {
    50: '#8175d2',
    500: '#3940bd',
    950: '#000000',
  },
}
SCSS
$custom: #3940bd;
$custom-light: #8175d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3940bd",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 236.818,
    "s": 53.659,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45029,
    "c": 0.19211,
    "h": 273.2
  },
  "luminance": 0.08211
}

Semantic roles & 50–950 ramp

primary
#3940BD
secondary
#C9C689
accent
#D54BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3940BD

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

Preview Lab → · Contrast checker → · Palette generator →

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