#3940C7#3940C7

#3940C7 is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.0% C 0.205 H 272.8°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#3940C7
RGBrgb(57, 64, 199)
HSLhsl(237, 56%, 50%)
HSVhsv(237, 71%, 78%)
CMYKcmyk(71.4%, 67.8%, 0%, 22%)
CIE-LABlab(35.32, 41.76, -70.77)
CIE-LCHlch(35.32, 82.17, 300.54°)
OKLaboklab(45.96% 0.0098 -0.2046)
OKLCHoklch(45.96% 0.205 272.8)
XYZxyz(13.8261, 8.6588, 54.9644)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940C7 #C7C039
analogous
#3987C7 #3940C7 #7939C7
triadic
#3940C7 #C73940 #40C739
tetradic
#3940C7 #C73987 #C7C039 #39C779
square
#3940C7 #C73987 #C7C039 #39C779
split-complementary
#3940C7 #C77939 #87C739
monochromatic
#1D2168 #2B3098 #3940C7 #696ED4 #989CE2

Accessibility & contrast

On white

7.69
#3940C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#3940C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940C7
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940C7#FFFFFF#000000##FFFFFF
##3940C71.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#004CC4
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3940c7;
/* rgb */ color: rgb(57, 64, 199);
/* oklch */ color: oklch(46.0% 0.205 272.8);
Tailwind
colors: {
  custom: {
    50: '#8375d9',
    500: '#3940c7',
    950: '#000000',
  },
}
SCSS
$custom: #3940c7;
$custom-light: #8375d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3940c7",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 237.042,
    "s": 55.906,
    "l": 50.196
  },
  "oklch": {
    "l": 0.4596,
    "c": 0.20483,
    "h": 272.8
  },
  "luminance": 0.0866
}

Semantic roles & 50–950 ramp

primary
#3940C7
secondary
#CECB8E
accent
#D849DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3940C7

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

Preview Lab → · Contrast checker → · Palette generator →

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