#3942C5#3942C5

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

Color values

HEX#3942C5
RGBrgb(57, 66, 197)
HSLhsl(236, 55%, 50%)
HSVhsv(236, 71%, 77%)
CMYKcmyk(71.1%, 66.5%, 0%, 22.7%)
CIE-LABlab(35.59, 39.86, -69.16)
CIE-LCHlch(35.59, 79.82, 299.96°)
OKLaboklab(46.1% 0.0088 -0.1999)
OKLCHoklch(46.1% 0.2 272.5)
XYZxyz(13.7102, 8.7961, 53.7878)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942C5 #C5BC39
analogous
#3988C5 #3942C5 #7639C5
triadic
#3942C5 #C53942 #42C539
tetradic
#3942C5 #C53988 #C5BC39 #39C576
square
#3942C5 #C53988 #C5BC39 #39C576
split-complementary
#3942C5 #C57639 #88C539
monochromatic
#1E2266 #2B3296 #3942C5 #686FD3 #979CE1

Accessibility & contrast

On white

7.61
#3942C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#3942C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942C5
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942C5#FFFFFF#000000##FFFFFF
##3942C51.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3942c5;
/* rgb */ color: rgb(57, 66, 197);
/* oklch */ color: oklch(46.1% 0.200 272.5);
Tailwind
colors: {
  custom: {
    50: '#8377d8',
    500: '#3942c5',
    950: '#000000',
  },
}
SCSS
$custom: #3942c5;
$custom-light: #8377d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3942c5",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 236.143,
    "s": 55.118,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46101,
    "c": 0.20007,
    "h": 272.5
  },
  "luminance": 0.08798
}

Semantic roles & 50–950 ramp

primary
#3942C5
secondary
#CDC98D
accent
#D549DE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3942C5

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

Preview Lab → · Contrast checker → · Palette generator →

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