#3940B7#3940B7

#3940B7 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.184 H 273.5°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#3940B7
RGBrgb(57, 64, 183)
HSLhsl(237, 53%, 47%)
HSVhsv(237, 69%, 72%)
CMYKcmyk(68.9%, 65%, 0%, 28.2%)
CIE-LABlab(33.89, 36.25, -63.72)
CIE-LCHlch(33.89, 73.31, 299.64°)
OKLaboklab(44.48% 0.0113 -0.184)
OKLCHoklch(44.48% 0.184 273.5)
XYZxyz(12.0651, 7.9544, 45.6901)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940B7 #B7B039
analogous
#397FB7 #3940B7 #7139B7
triadic
#3940B7 #B73940 #40B739
tetradic
#3940B7 #B7397F #B7B039 #39B771
square
#3940B7 #B7397F #B7B039 #39B771
split-complementary
#3940B7 #B77139 #7FB739
monochromatic
#1C1F5A #2A3088 #3940B7 #6066CD #8E93DC

Accessibility & contrast

On white

8.10
#3940B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#3940B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940B7
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940B7#FFFFFF#000000##FFFFFF
##3940B71.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#004AB5
Tritanopia (blue-blind)
#005F76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3940b7;
/* rgb */ color: rgb(57, 64, 183);
/* oklch */ color: oklch(44.5% 0.184 273.5);
Tailwind
colors: {
  custom: {
    50: '#8075ce',
    500: '#3940b7',
    950: '#000000',
  },
}
SCSS
$custom: #3940b7;
$custom-light: #8075ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3940b7",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 236.667,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44482,
    "c": 0.18432,
    "h": 273.5
  },
  "luminance": 0.07956
}

Semantic roles & 50–950 ramp

primary
#3940B7
secondary
#C7C385
accent
#D44CDC
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3940B7

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

Preview Lab → · Contrast checker → · Palette generator →

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