#3940C2#3940C2

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

Color values

HEX#3940C2
RGBrgb(57, 64, 194)
HSLhsl(237, 55%, 49%)
HSVhsv(237, 71%, 76%)
CMYKcmyk(70.6%, 67%, 0%, 23.9%)
CIE-LABlab(34.86, 40.05, -68.59)
CIE-LCHlch(34.86, 79.43, 300.28°)
OKLaboklab(45.49% 0.0104 -0.1982)
OKLCHoklch(45.49% 0.199 273)
XYZxyz(13.2551, 8.4304, 51.9572)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940C2 #C2BB39
analogous
#3985C2 #3940C2 #7739C2
triadic
#3940C2 #C23940 #40C239
tetradic
#3940C2 #C23985 #C2BB39 #39C277
square
#3940C2 #C23985 #C2BB39 #39C277
split-complementary
#3940C2 #C27739 #85C239
monochromatic
#1D2163 #2B3093 #3940C2 #666CD2 #9599E0

Accessibility & contrast

On white

7.82
#3940C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#3940C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940C2
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940C2#FFFFFF#000000##FFFFFF
##3940C21.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#004CC0
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3940c2;
/* rgb */ color: rgb(57, 64, 194);
/* oklch */ color: oklch(45.5% 0.199 273.0);
Tailwind
colors: {
  custom: {
    50: '#8275d6',
    500: '#3940c2',
    950: '#000000',
  },
}
SCSS
$custom: #3940c2;
$custom-light: #8275d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3940c2",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 236.934,
    "s": 54.582,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45492,
    "c": 0.1985,
    "h": 273
  },
  "luminance": 0.08432
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3940C2

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

Preview Lab → · Contrast checker → · Palette generator →

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