#3940BB#3940BB

#3940BB is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.8% C 0.190 H 273.3°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#3940BB
RGBrgb(57, 64, 187)
HSLhsl(237, 53%, 48%)
HSVhsv(237, 70%, 73%)
CMYKcmyk(69.5%, 65.8%, 0%, 26.7%)
CIE-LABlab(34.24, 37.64, -65.51)
CIE-LCHlch(34.24, 75.55, 299.88°)
OKLaboklab(44.85% 0.011 -0.1892)
OKLCHoklch(44.85% 0.19 273.3)
XYZxyz(12.4874, 8.1233, 47.9139)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940BB #BBB439
analogous
#3981BB #3940BB #7339BB
triadic
#3940BB #BB3940 #40BB39
tetradic
#3940BB #BB3981 #BBB439 #39BB73
square
#3940BB #BB3981 #BBB439 #39BB73
split-complementary
#3940BB #BB7339 #81BB39
monochromatic
#1C205D #2B308C #3940BB #6268CF #9195DD

Accessibility & contrast

On white

8.00
#3940BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3940BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940BB
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940BB#FFFFFF#000000##FFFFFF
##3940BB1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#004BB9
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3940bb;
/* rgb */ color: rgb(57, 64, 187);
/* oklch */ color: oklch(44.8% 0.190 273.3);
Tailwind
colors: {
  custom: {
    50: '#8175d0',
    500: '#3940bb',
    950: '#000000',
  },
}
SCSS
$custom: #3940bb;
$custom-light: #8175d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3940bb",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 236.769,
    "s": 53.279,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44845,
    "c": 0.18952,
    "h": 273.3
  },
  "luminance": 0.08125
}

Semantic roles & 50–950 ramp

primary
#3940BB
secondary
#C8C587
accent
#D54BDD
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3940BB

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

Preview Lab → · Contrast checker → · Palette generator →

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