#3940CE#3940CE

#3940CE is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.6% C 0.214 H 272.4°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#3940CE
RGBrgb(57, 64, 206)
HSLhsl(237, 60%, 52%)
HSVhsv(237, 72%, 81%)
CMYKcmyk(72.3%, 68.9%, 0%, 19.2%)
CIE-LABlab(35.97, 44.13, -73.77)
CIE-LCHlch(35.97, 85.96, 300.89°)
OKLaboklab(46.63% 0.009 -0.2134)
OKLCHoklch(46.63% 0.214 272.4)
XYZxyz(14.6576, 8.9914, 59.3436)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940CE #CEC739
analogous
#398BCE #3940CE #7D39CE
triadic
#3940CE #CE3940 #40CE39
tetradic
#3940CE #CE398B #CEC739 #39CE7D
square
#3940CE #CE398B #CEC739 #39CE7D
split-complementary
#3940CE #CE7D39 #8BCE39
monochromatic
#1C2071 #282EA2 #3940CE #6A6FDA #9B9FE6

Accessibility & contrast

On white

7.50
#3940CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#3940CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940CE
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940CE#FFFFFF#000000##FFFFFF
##3940CE1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#004ECB
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3940ce;
/* rgb */ color: rgb(57, 64, 206);
/* oklch */ color: oklch(46.6% 0.214 272.4);
Tailwind
colors: {
  custom: {
    50: '#8576de',
    500: '#3940ce',
    950: '#000000',
  },
}
SCSS
$custom: #3940ce;
$custom-light: #8576de;
$custom-dark: #000000;
JSON
{
  "hex": "#3940ce",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 237.181,
    "s": 60.324,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46626,
    "c": 0.21355,
    "h": 272.4
  },
  "luminance": 0.08993
}

Semantic roles & 50–950 ramp

primary
#3940CE
secondary
#D2CF91
accent
#DC44E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3940CE

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

Preview Lab → · Contrast checker → · Palette generator →

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