#3940CD#3940CD

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

Color values

HEX#3940CD
RGBrgb(57, 64, 205)
HSLhsl(237, 60%, 51%)
HSVhsv(237, 72%, 80%)
CMYKcmyk(72.2%, 68.8%, 0%, 19.6%)
CIE-LABlab(35.87, 43.79, -73.34)
CIE-LCHlch(35.87, 85.42, 300.84°)
OKLaboklab(46.53% 0.0092 -0.2121)
OKLCHoklch(46.53% 0.212 272.5)
XYZxyz(14.5365, 8.9430, 58.7058)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940CD #CDC639
analogous
#398ACD #3940CD #7C39CD
triadic
#3940CD #CD3940 #40CD39
tetradic
#3940CD #CD398A #CDC639 #39CD7C
square
#3940CD #CD398A #CDC639 #39CD7C
split-complementary
#3940CD #CD7C39 #8ACD39
monochromatic
#1C206F #282EA0 #3940CD #6A6FD9 #9B9EE6

Accessibility & contrast

On white

7.53
#3940CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#3940CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940CD
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940CD#FFFFFF#000000##FFFFFF
##3940CD1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#004DCA
Tritanopia (blue-blind)
#006781
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3940cd;
/* rgb */ color: rgb(57, 64, 205);
/* oklch */ color: oklch(46.5% 0.212 272.5);
Tailwind
colors: {
  custom: {
    50: '#8575dd',
    500: '#3940cd',
    950: '#000000',
  },
}
SCSS
$custom: #3940cd;
$custom-light: #8575dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3940cd",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 237.162,
    "s": 59.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.4653,
    "c": 0.21232,
    "h": 272.5
  },
  "luminance": 0.08944
}

Semantic roles & 50–950 ramp

primary
#3940CD
secondary
#D2CE90
accent
#DB45E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3940CD

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

Preview Lab → · Contrast checker → · Palette generator →

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