#3942B9#3942B9

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

Color values

HEX#3942B9
RGBrgb(57, 66, 185)
HSLhsl(236, 53%, 47%)
HSVhsv(236, 69%, 73%)
CMYKcmyk(69.2%, 64.3%, 0%, 27.5%)
CIE-LABlab(34.53, 35.70, -63.84)
CIE-LCHlch(34.53, 73.14, 299.21°)
OKLaboklab(45.01% 0.0098 -0.1843)
OKLCHoklch(45.01% 0.185 273)
XYZxyz(12.3896, 8.2679, 46.8325)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942B9 #B9B039
analogous
#3982B9 #3942B9 #7039B9
triadic
#3942B9 #B93942 #42B939
tetradic
#3942B9 #B93982 #B9B039 #39B970
square
#3942B9 #B93982 #B9B039 #39B970
split-complementary
#3942B9 #B97039 #82B939
monochromatic
#1C215B #2B318A #3942B9 #6169CE #9095DD

Accessibility & contrast

On white

7.91
#3942B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3942B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942B9
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942B9#FFFFFF#000000##FFFFFF
##3942B91.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#004BB7
Tritanopia (blue-blind)
#006177
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3942b9;
/* rgb */ color: rgb(57, 66, 185);
/* oklch */ color: oklch(45.0% 0.185 273.0);
Tailwind
colors: {
  custom: {
    50: '#8076cf',
    500: '#3942b9',
    950: '#000000',
  },
}
SCSS
$custom: #3942b9;
$custom-light: #8076cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3942b9",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 185
  },
  "hsl": {
    "h": 235.781,
    "s": 52.893,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45008,
    "c": 0.18457,
    "h": 273
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3942B9

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

Preview Lab → · Contrast checker → · Palette generator →

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