#3942D2#3942D2

#3942D2 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.3% C 0.216 H 272.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#3942D2
RGBrgb(57, 66, 210)
HSLhsl(236, 63%, 52%)
HSVhsv(236, 73%, 82%)
CMYKcmyk(72.9%, 68.6%, 0%, 17.6%)
CIE-LABlab(36.78, 44.29, -74.75)
CIE-LCHlch(36.78, 86.89, 300.65°)
OKLaboklab(47.32% 0.0075 -0.2162)
OKLCHoklch(47.32% 0.216 272)
XYZxyz(15.2645, 9.4179, 61.9736)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942D2 #D2C939
analogous
#398ED2 #3942D2 #7D39D2
triadic
#3942D2 #D23942 #42D239
tetradic
#3942D2 #D2398E #D2C939 #39D27D
square
#3942D2 #D2398E #D2C939 #39D27D
split-complementary
#3942D2 #D27D39 #8ED239
monochromatic
#1B2076 #262EA8 #3942D2 #6B72DD #9DA1E9

Accessibility & contrast

On white

7.28
#3942D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#3942D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942D2
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942D2#FFFFFF#000000##FFFFFF
##3942D21.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#004FCF
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3942d2;
/* rgb */ color: rgb(57, 66, 210);
/* oklch */ color: oklch(47.3% 0.216 272.0);
Tailwind
colors: {
  custom: {
    50: '#8677e1',
    500: '#3942d2',
    950: '#000000',
  },
}
SCSS
$custom: #3942d2;
$custom-light: #8677e1;
$custom-dark: #000000;
JSON
{
  "hex": "#3942d2",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 236.471,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47323,
    "c": 0.21637,
    "h": 272
  },
  "luminance": 0.09419
}

Semantic roles & 50–950 ramp

primary
#3942D2
secondary
#D5D192
accent
#DC42E6
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0915
muted
#7E7B84

Preview Lab

Preview with #3942D2

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

Preview Lab → · Contrast checker → · Palette generator →

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