#3942C4#3942C4

#3942C4 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.0% C 0.199 H 272.6°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#3942C4
RGBrgb(57, 66, 196)
HSLhsl(236, 55%, 50%)
HSVhsv(236, 71%, 77%)
CMYKcmyk(70.9%, 66.3%, 0%, 23.1%)
CIE-LABlab(35.50, 39.51, -68.72)
CIE-LCHlch(35.50, 79.27, 299.90°)
OKLaboklab(46.01% 0.0089 -0.1986)
OKLCHoklch(46.01% 0.199 272.6)
XYZxyz(13.5960, 8.7505, 53.1863)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942C4 #C4BB39
analogous
#3988C4 #3942C4 #7639C4
triadic
#3942C4 #C43942 #42C439
tetradic
#3942C4 #C43988 #C4BB39 #39C476
square
#3942C4 #C43988 #C4BB39 #39C476
split-complementary
#3942C4 #C47639 #88C439
monochromatic
#1D2265 #2B3295 #3942C4 #676ED3 #979CE1

Accessibility & contrast

On white

7.64
#3942C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#3942C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942C4
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942C4#FFFFFF#000000##FFFFFF
##3942C41.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#004DC2
Tritanopia (blue-blind)
#00657D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3942c4;
/* rgb */ color: rgb(57, 66, 196);
/* oklch */ color: oklch(46.0% 0.199 272.6);
Tailwind
colors: {
  custom: {
    50: '#8377d7',
    500: '#3942c4',
    950: '#000000',
  },
}
SCSS
$custom: #3942c4;
$custom-light: #8377d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3942c4",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 236.115,
    "s": 54.941,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46008,
    "c": 0.1988,
    "h": 272.6
  },
  "luminance": 0.08752
}

Semantic roles & 50–950 ramp

primary
#3942C4
secondary
#CCC88D
accent
#D54ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3942C4

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

Preview Lab → · Contrast checker → · Palette generator →

#3942C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva