#3942BA#3942BA

#3942BA is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.1% C 0.186 H 273.0°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#3942BA
RGBrgb(57, 66, 186)
HSLhsl(236, 53%, 48%)
HSVhsv(236, 69%, 73%)
CMYKcmyk(69.4%, 64.5%, 0%, 27.1%)
CIE-LABlab(34.62, 36.05, -64.29)
CIE-LCHlch(34.62, 73.71, 299.28°)
OKLaboklab(45.1% 0.0097 -0.1856)
OKLCHoklch(45.1% 0.186 273)
XYZxyz(12.4955, 8.3103, 47.3904)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942BA #BAB139
analogous
#3982BA #3942BA #7139BA
triadic
#3942BA #BA3942 #42BA39
tetradic
#3942BA #BA3982 #BAB139 #39BA71
square
#3942BA #BA3982 #BAB139 #39BA71
split-complementary
#3942BA #BA7139 #82BA39
monochromatic
#1C215C #2B318B #3942BA #6169CF #9096DD

Accessibility & contrast

On white

7.89
#3942BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3942BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942BA
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942BA#FFFFFF#000000##FFFFFF
##3942BA1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3942ba;
/* rgb */ color: rgb(57, 66, 186);
/* oklch */ color: oklch(45.1% 0.186 273.0);
Tailwind
colors: {
  custom: {
    50: '#8076d0',
    500: '#3942ba',
    950: '#000000',
  },
}
SCSS
$custom: #3942ba;
$custom-light: #8076d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3942ba",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 235.814,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45098,
    "c": 0.18588,
    "h": 273
  },
  "luminance": 0.08311
}

Semantic roles & 50–950 ramp

primary
#3942BA
secondary
#C8C387
accent
#D24BDC
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3942BA

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

Preview Lab → · Contrast checker → · Palette generator →

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