#3942B4#3942B4

#3942B4 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.6% C 0.178 H 273.2°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#3942B4
RGBrgb(57, 66, 180)
HSLhsl(236, 52%, 46%)
HSVhsv(236, 68%, 71%)
CMYKcmyk(68.3%, 63.3%, 0%, 29.4%)
CIE-LABlab(34.11, 33.95, -61.58)
CIE-LCHlch(34.11, 70.32, 298.86°)
OKLaboklab(44.56% 0.0101 -0.1777)
OKLCHoklch(44.56% 0.178 273.2)
XYZxyz(11.8710, 8.0605, 44.1014)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942B4 #B4AB39
analogous
#3980B4 #3942B4 #6E39B4
triadic
#3942B4 #B43942 #42B439
tetradic
#3942B4 #B43980 #B4AB39 #39B46E
square
#3942B4 #B43980 #B4AB39 #39B46E
split-complementary
#3942B4 #B46E39 #80B439
monochromatic
#1C2057 #2A3186 #3942B4 #5E66CC #8D92DB

Accessibility & contrast

On white

8.04
#3942B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#3942B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942B4
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942B4#FFFFFF#000000##FFFFFF
##3942B41.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3942b4;
/* rgb */ color: rgb(57, 66, 180);
/* oklch */ color: oklch(44.6% 0.178 273.2);
Tailwind
colors: {
  custom: {
    50: '#7f76cb',
    500: '#3942b4',
    950: '#000000',
  },
}
SCSS
$custom: #3942b4;
$custom-light: #7f76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3942b4",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 235.61,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44564,
    "c": 0.17797,
    "h": 273.2
  },
  "luminance": 0.08062
}

Semantic roles & 50–950 ramp

primary
#3942B4
secondary
#C5C083
accent
#D14CDB
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3942B4

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

Preview Lab → · Contrast checker → · Palette generator →

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