#3940C1#3940C1

#3940C1 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.197 H 273.0°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#3940C1
RGBrgb(57, 64, 193)
HSLhsl(237, 54%, 49%)
HSVhsv(237, 70%, 76%)
CMYKcmyk(70.5%, 66.8%, 0%, 24.3%)
CIE-LABlab(34.77, 39.71, -68.15)
CIE-LCHlch(34.77, 78.88, 300.23°)
OKLaboklab(45.4% 0.0105 -0.1969)
OKLCHoklch(45.4% 0.197 273)
XYZxyz(13.1432, 8.3856, 51.3677)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940C1 #C1BA39
analogous
#3984C1 #3940C1 #7639C1
triadic
#3940C1 #C13940 #40C139
tetradic
#3940C1 #C13984 #C1BA39 #39C176
square
#3940C1 #C13984 #C1BA39 #39C176
split-complementary
#3940C1 #C17639 #84C139
monochromatic
#1D2163 #2B3092 #3940C1 #666BD2 #9599E0

Accessibility & contrast

On white

7.84
#3940C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3940C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940C1
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940C1#FFFFFF#000000##FFFFFF
##3940C11.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#004BBF
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3940c1;
/* rgb */ color: rgb(57, 64, 193);
/* oklch */ color: oklch(45.4% 0.197 273.0);
Tailwind
colors: {
  custom: {
    50: '#8275d5',
    500: '#3940c1',
    950: '#000000',
  },
}
SCSS
$custom: #3940c1;
$custom-light: #8275d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3940c1",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 236.912,
    "s": 54.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45399,
    "c": 0.19723,
    "h": 273
  },
  "luminance": 0.08387
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3940C1

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

Preview Lab → · Contrast checker → · Palette generator →

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