#3942CC#3942CC

#3942CC is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.8% C 0.209 H 272.2°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#3942CC
RGBrgb(57, 66, 204)
HSLhsl(236, 59%, 51%)
HSVhsv(236, 72%, 80%)
CMYKcmyk(72.1%, 67.6%, 0%, 20%)
CIE-LABlab(36.22, 42.26, -72.19)
CIE-LCHlch(36.22, 83.65, 300.34°)
OKLaboklab(46.75% 0.0081 -0.2087)
OKLCHoklch(46.75% 0.209 272.2)
XYZxyz(14.5310, 9.1244, 58.1104)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942CC #CCC339
analogous
#398BCC #3942CC #7939CC
triadic
#3942CC #CC3942 #42CC39
tetradic
#3942CC #CC398B #CCC339 #39CC79
square
#3942CC #CC398B #CCC339 #39CC79
split-complementary
#3942CC #CC7939 #8BCC39
monochromatic
#1C216E #29309F #3942CC #6A70D9 #9A9FE5

Accessibility & contrast

On white

7.43
#3942CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#3942CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942CC
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942CC#FFFFFF#000000##FFFFFF
##3942CC1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#004EC9
Tritanopia (blue-blind)
#006781
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3942cc;
/* rgb */ color: rgb(57, 66, 204);
/* oklch */ color: oklch(46.8% 0.209 272.2);
Tailwind
colors: {
  custom: {
    50: '#8477dd',
    500: '#3942cc',
    950: '#000000',
  },
}
SCSS
$custom: #3942cc;
$custom-light: #8477dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3942cc",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 236.327,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46754,
    "c": 0.20891,
    "h": 272.2
  },
  "luminance": 0.09126
}

Semantic roles & 50–950 ramp

primary
#3942CC
secondary
#D1CD90
accent
#D946E2
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3942CC

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

Preview Lab → · Contrast checker → · Palette generator →

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