#3940C0#3940C0

#3940C0 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.3% C 0.196 H 273.1°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#3940C0
RGBrgb(57, 64, 192)
HSLhsl(237, 54%, 49%)
HSVhsv(237, 70%, 75%)
CMYKcmyk(70.3%, 66.7%, 0%, 24.7%)
CIE-LABlab(34.68, 39.36, -67.72)
CIE-LCHlch(34.68, 78.32, 300.17°)
OKLaboklab(45.31% 0.0106 -0.1957)
OKLCHoklch(45.31% 0.196 273.1)
XYZxyz(13.0320, 8.3412, 50.7822)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940C0 #C0B939
analogous
#3984C0 #3940C0 #7639C0
triadic
#3940C0 #C03940 #40C039
tetradic
#3940C0 #C03984 #C0B939 #39C076
square
#3940C0 #C03984 #C0B939 #39C076
split-complementary
#3940C0 #C07639 #84C039
monochromatic
#1D2162 #2B3091 #3940C0 #656BD1 #9498DF

Accessibility & contrast

On white

7.87
#3940C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3940C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940C0
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940C0#FFFFFF#000000##FFFFFF
##3940C01.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#004BBE
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3940c0;
/* rgb */ color: rgb(57, 64, 192);
/* oklch */ color: oklch(45.3% 0.196 273.1);
Tailwind
colors: {
  custom: {
    50: '#8275d4',
    500: '#3940c0',
    950: '#000000',
  },
}
SCSS
$custom: #3940c0;
$custom-light: #8275d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3940c0",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 236.889,
    "s": 54.217,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45306,
    "c": 0.19595,
    "h": 273.1
  },
  "luminance": 0.08342
}

Semantic roles & 50–950 ramp

primary
#3940C0
secondary
#CBC78A
accent
#D64ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3940C0

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

Preview Lab → · Contrast checker → · Palette generator →

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