#3940CC#3940CC

#3940CC is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.4% C 0.211 H 272.5°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#3940CC
RGBrgb(57, 64, 204)
HSLhsl(237, 59%, 51%)
HSVhsv(237, 72%, 80%)
CMYKcmyk(72.1%, 68.6%, 0%, 20%)
CIE-LABlab(35.78, 43.46, -72.92)
CIE-LCHlch(35.78, 84.88, 300.79°)
OKLaboklab(46.43% 0.0093 -0.2109)
OKLCHoklch(46.43% 0.211 272.5)
XYZxyz(14.4162, 8.8948, 58.0722)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940CC #CCC539
analogous
#3989CC #3940CC #7B39CC
triadic
#3940CC #CC3940 #40CC39
tetradic
#3940CC #CC3989 #CCC539 #39CC7B
square
#3940CC #CC3989 #CCC539 #39CC7B
split-complementary
#3940CC #CC7B39 #89CC39
monochromatic
#1C206E #292F9F #3940CC #6A6FD9 #9A9EE5

Accessibility & contrast

On white

7.56
#3940CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#3940CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940CC
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940CC#FFFFFF#000000##FFFFFF
##3940CC1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#004DC9
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3940cc;
/* rgb */ color: rgb(57, 64, 204);
/* oklch */ color: oklch(46.4% 0.211 272.5);
Tailwind
colors: {
  custom: {
    50: '#8475dd',
    500: '#3940cc',
    950: '#000000',
  },
}
SCSS
$custom: #3940cc;
$custom-light: #8475dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3940cc",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 237.143,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46435,
    "c": 0.21107,
    "h": 272.5
  },
  "luminance": 0.08896
}

Semantic roles & 50–950 ramp

primary
#3940CC
secondary
#D1CE90
accent
#DB46E2
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3940CC

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

Preview Lab → · Contrast checker → · Palette generator →

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