#3942D5#3942D5

#3942D5 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.6% C 0.220 H 271.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#3942D5
RGBrgb(57, 66, 213)
HSLhsl(237, 65%, 53%)
HSVhsv(237, 73%, 84%)
CMYKcmyk(73.2%, 69%, 0%, 16.5%)
CIE-LABlab(37.06, 45.31, -76.02)
CIE-LCHlch(37.06, 88.50, 300.79°)
OKLaboklab(47.61% 0.0071 -0.2199)
OKLCHoklch(47.61% 0.22 271.9)
XYZxyz(15.6417, 9.5688, 63.9605)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942D5 #D5CC39
analogous
#3990D5 #3942D5 #7E39D5
triadic
#3942D5 #D53942 #42D539
tetradic
#3942D5 #D53990 #D5CC39 #39D57E
square
#3942D5 #D53990 #D5CC39 #39D57E
split-complementary
#3942D5 #D57E39 #90D539
monochromatic
#1A1F7A #252CAC #3942D5 #6B72E0 #9EA2EA

Accessibility & contrast

On white

7.21
#3942D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#3942D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942D5
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942D5#FFFFFF#000000##FFFFFF
##3942D51.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0050D2
Tritanopia (blue-blind)
#006B86
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3942d5;
/* rgb */ color: rgb(57, 66, 213);
/* oklch */ color: oklch(47.6% 0.220 271.9);
Tailwind
colors: {
  custom: {
    50: '#8677e3',
    500: '#3942d5',
    950: '#000000',
  },
}
SCSS
$custom: #3942d5;
$custom-light: #8677e3;
$custom-dark: #000000;
JSON
{
  "hex": "#3942d5",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 236.538,
    "s": 65,
    "l": 52.941
  },
  "oklch": {
    "l": 0.4761,
    "c": 0.22005,
    "h": 271.9
  },
  "luminance": 0.0957
}

Semantic roles & 50–950 ramp

primary
#3942D5
secondary
#D7D393
accent
#DE40E8
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #3942D5

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

Preview Lab → · Contrast checker → · Palette generator →

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