#3942BD#3942BD

#3942BD is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.190 H 272.9°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#3942BD
RGBrgb(57, 66, 189)
HSLhsl(236, 54%, 48%)
HSVhsv(236, 70%, 74%)
CMYKcmyk(69.8%, 65.1%, 0%, 25.9%)
CIE-LABlab(34.88, 37.09, -65.63)
CIE-LCHlch(34.88, 75.39, 299.47°)
OKLaboklab(45.37% 0.0095 -0.1895)
OKLCHoklch(45.37% 0.19 272.9)
XYZxyz(12.8178, 8.4392, 49.0877)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942BD #BDB439
analogous
#3984BD #3942BD #7239BD
triadic
#3942BD #BD3942 #42BD39
tetradic
#3942BD #BD3984 #BDB439 #39BD72
square
#3942BD #BD3984 #BDB439 #39BD72
split-complementary
#3942BD #BD7239 #84BD39
monochromatic
#1D215F #2B328E #3942BD #636BD0 #9297DE

Accessibility & contrast

On white

7.81
#3942BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#3942BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942BD
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942BD#FFFFFF#000000##FFFFFF
##3942BD1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3942bd;
/* rgb */ color: rgb(57, 66, 189);
/* oklch */ color: oklch(45.4% 0.190 272.9);
Tailwind
colors: {
  custom: {
    50: '#8176d2',
    500: '#3942bd',
    950: '#000000',
  },
}
SCSS
$custom: #3942bd;
$custom-light: #8176d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3942bd",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 235.909,
    "s": 53.659,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45368,
    "c": 0.18979,
    "h": 272.9
  },
  "luminance": 0.0844
}

Semantic roles & 50–950 ramp

primary
#3942BD
secondary
#C9C589
accent
#D34BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3942BD

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

Preview Lab → · Contrast checker → · Palette generator →

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