#3942B1#3942B1

#3942B1 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.3% C 0.174 H 273.4°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#3942B1
RGBrgb(57, 66, 177)
HSLhsl(236, 51%, 46%)
HSVhsv(236, 68%, 69%)
CMYKcmyk(67.8%, 62.7%, 0%, 30.6%)
CIE-LABlab(33.86, 32.89, -60.21)
CIE-LCHlch(33.86, 68.61, 298.65°)
OKLaboklab(44.3% 0.0102 -0.1737)
OKLCHoklch(44.3% 0.174 273.4)
XYZxyz(11.5687, 7.9395, 42.5093)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942B1 #B1A839
analogous
#397EB1 #3942B1 #6C39B1
triadic
#3942B1 #B13942 #42B139
tetradic
#3942B1 #B1397E #B1A839 #39B16C
square
#3942B1 #B1397E #B1A839 #39B16C
split-complementary
#3942B1 #B16C39 #7EB139
monochromatic
#1B1F54 #2A3183 #3942B1 #5D65CB #8B91DA

Accessibility & contrast

On white

8.11
#3942B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#3942B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942B1
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942B1#FFFFFF#000000##FFFFFF
##3942B11.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B5
Deuteranopia (green-blind)
#004AAF
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3942b1;
/* rgb */ color: rgb(57, 66, 177);
/* oklch */ color: oklch(44.3% 0.174 273.4);
Tailwind
colors: {
  custom: {
    50: '#7e76c9',
    500: '#3942b1',
    950: '#000000',
  },
}
SCSS
$custom: #3942b1;
$custom-light: #7e76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3942b1",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 235.5,
    "s": 51.282,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44301,
    "c": 0.17398,
    "h": 273.4
  },
  "luminance": 0.07941
}

Semantic roles & 50–950 ramp

primary
#3942B1
secondary
#C4BF82
accent
#D04DDB
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3942B1

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

Preview Lab → · Contrast checker → · Palette generator →

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