#3940C4#3940C4

#3940C4 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.7% C 0.201 H 272.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#3940C4
RGBrgb(57, 64, 196)
HSLhsl(237, 55%, 50%)
HSVhsv(237, 71%, 77%)
CMYKcmyk(70.9%, 67.3%, 0%, 23.1%)
CIE-LABlab(35.04, 40.73, -69.46)
CIE-LCHlch(35.04, 80.53, 300.39°)
OKLaboklab(45.68% 0.0102 -0.2008)
OKLCHoklch(45.68% 0.201 272.9)
XYZxyz(13.4812, 8.5208, 53.1481)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940C4 #C4BD39
analogous
#3986C4 #3940C4 #7739C4
triadic
#3940C4 #C43940 #40C439
tetradic
#3940C4 #C43986 #C4BD39 #39C477
square
#3940C4 #C43986 #C4BD39 #39C477
split-complementary
#3940C4 #C47739 #86C439
monochromatic
#1D2165 #2B3195 #3940C4 #676DD3 #979AE1

Accessibility & contrast

On white

7.77
#3940C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3940C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940C4
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940C4#FFFFFF#000000##FFFFFF
##3940C41.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C8
Deuteranopia (green-blind)
#004CC2
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3940c4;
/* rgb */ color: rgb(57, 64, 196);
/* oklch */ color: oklch(45.7% 0.201 272.9);
Tailwind
colors: {
  custom: {
    50: '#8375d7',
    500: '#3940c4',
    950: '#000000',
  },
}
SCSS
$custom: #3940c4;
$custom-light: #8375d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3940c4",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 236.978,
    "s": 54.941,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45678,
    "c": 0.20105,
    "h": 272.9
  },
  "luminance": 0.08522
}

Semantic roles & 50–950 ramp

primary
#3940C4
secondary
#CCC98D
accent
#D74ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3940C4

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

Preview Lab → · Contrast checker → · Palette generator →

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