#3942C6#3942C6

#3942C6 is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.2% C 0.201 H 272.5°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#3942C6
RGBrgb(57, 66, 198)
HSLhsl(236, 55%, 50%)
HSVhsv(236, 71%, 78%)
CMYKcmyk(71.2%, 66.7%, 0%, 22.4%)
CIE-LABlab(35.68, 40.20, -69.59)
CIE-LCHlch(35.68, 80.37, 300.01°)
OKLaboklab(46.19% 0.0087 -0.2011)
OKLCHoklch(46.19% 0.201 272.5)
XYZxyz(13.8252, 8.8421, 54.3932)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942C6 #C6BD39
analogous
#3989C6 #3942C6 #7639C6
triadic
#3942C6 #C63942 #42C639
tetradic
#3942C6 #C63989 #C6BD39 #39C676
square
#3942C6 #C63989 #C6BD39 #39C676
split-complementary
#3942C6 #C67639 #89C639
monochromatic
#1E2267 #2B3296 #3942C6 #696FD4 #989DE1

Accessibility & contrast

On white

7.58
#3942C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#3942C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942C6
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942C6#FFFFFF#000000##FFFFFF
##3942C61.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#004DC4
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3942c6;
/* rgb */ color: rgb(57, 66, 198);
/* oklch */ color: oklch(46.2% 0.201 272.5);
Tailwind
colors: {
  custom: {
    50: '#8377d8',
    500: '#3942c6',
    950: '#000000',
  },
}
SCSS
$custom: #3942c6;
$custom-light: #8377d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3942c6",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 236.17,
    "s": 55.294,
    "l": 50
  },
  "oklch": {
    "l": 0.46194,
    "c": 0.20134,
    "h": 272.5
  },
  "luminance": 0.08844
}

Semantic roles & 50–950 ramp

primary
#3942C6
secondary
#CDC98E
accent
#D549DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3942C6

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

Preview Lab → · Contrast checker → · Palette generator →

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