#3940B4#3940B4

#3940B4 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.180 H 273.7°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#3940B4
RGBrgb(57, 64, 180)
HSLhsl(237, 52%, 46%)
HSVhsv(237, 68%, 71%)
CMYKcmyk(68.3%, 64.4%, 0%, 29.4%)
CIE-LABlab(33.63, 35.21, -62.37)
CIE-LCHlch(33.63, 71.62, 299.45°)
OKLaboklab(44.21% 0.0116 -0.18)
OKLCHoklch(44.21% 0.18 273.7)
XYZxyz(11.7562, 7.8308, 44.0631)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940B4 #B4AD39
analogous
#397EB4 #3940B4 #7039B4
triadic
#3940B4 #B43940 #40B439
tetradic
#3940B4 #B4397E #B4AD39 #39B470
square
#3940B4 #B4397E #B4AD39 #39B470
split-complementary
#3940B4 #B47039 #7EB439
monochromatic
#1C1F57 #2A2F86 #3940B4 #5E64CC #8D91DB

Accessibility & contrast

On white

8.18
#3940B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3940B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940B4
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940B4#FFFFFF#000000##FFFFFF
##3940B41.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#004AB2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3940b4;
/* rgb */ color: rgb(57, 64, 180);
/* oklch */ color: oklch(44.2% 0.180 273.7);
Tailwind
colors: {
  custom: {
    50: '#7f75cb',
    500: '#3940b4',
    950: '#000000',
  },
}
SCSS
$custom: #3940b4;
$custom-light: #7f75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3940b4",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 236.585,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44212,
    "c": 0.18038,
    "h": 273.7
  },
  "luminance": 0.07832
}

Semantic roles & 50–950 ramp

primary
#3940B4
secondary
#C5C283
accent
#D34CDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3940B4

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

Preview Lab → · Contrast checker → · Palette generator →

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