#3940C5#3940C5

#3940C5 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 45.8% C 0.202 H 272.8°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#3940C5
RGBrgb(57, 64, 197)
HSLhsl(237, 55%, 50%)
HSVhsv(237, 71%, 77%)
CMYKcmyk(71.1%, 67.5%, 0%, 22.7%)
CIE-LABlab(35.14, 41.08, -69.90)
CIE-LCHlch(35.14, 81.08, 300.44°)
OKLaboklab(45.77% 0.0101 -0.2021)
OKLCHoklch(45.77% 0.202 272.8)
XYZxyz(13.5954, 8.5665, 53.7495)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940C5 #C5BE39
analogous
#3986C5 #3940C5 #7839C5
triadic
#3940C5 #C53940 #40C539
tetradic
#3940C5 #C53986 #C5BE39 #39C578
square
#3940C5 #C53986 #C5BE39 #39C578
split-complementary
#3940C5 #C57839 #86C539
monochromatic
#1E2166 #2B3196 #3940C5 #686DD3 #979BE1

Accessibility & contrast

On white

7.74
#3940C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3940C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940C5
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940C5#FFFFFF#000000##FFFFFF
##3940C51.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#004CC3
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3940c5;
/* rgb */ color: rgb(57, 64, 197);
/* oklch */ color: oklch(45.8% 0.202 272.8);
Tailwind
colors: {
  custom: {
    50: '#8375d8',
    500: '#3940c5',
    950: '#000000',
  },
}
SCSS
$custom: #3940c5;
$custom-light: #8375d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3940c5",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 237,
    "s": 55.118,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45772,
    "c": 0.20231,
    "h": 272.8
  },
  "luminance": 0.08568
}

Semantic roles & 50–950 ramp

primary
#3940C5
secondary
#CDC98D
accent
#D749DE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3940C5

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

Preview Lab → · Contrast checker → · Palette generator →

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