#3942B7#3942B7

#3942B7 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.8% C 0.182 H 273.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#3942B7
RGBrgb(57, 66, 183)
HSLhsl(236, 53%, 47%)
HSVhsv(236, 69%, 72%)
CMYKcmyk(68.9%, 63.9%, 0%, 28.2%)
CIE-LABlab(34.36, 35.00, -62.94)
CIE-LCHlch(34.36, 72.02, 299.08°)
OKLaboklab(44.83% 0.0099 -0.1817)
OKLCHoklch(44.83% 0.182 273.1)
XYZxyz(12.1799, 8.1840, 45.7284)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942B7 #B7AE39
analogous
#3981B7 #3942B7 #6F39B7
triadic
#3942B7 #B73942 #42B739
tetradic
#3942B7 #B73981 #B7AE39 #39B76F
square
#3942B7 #B73981 #B7AE39 #39B76F
split-complementary
#3942B7 #B76F39 #81B739
monochromatic
#1C205A #2A3188 #3942B7 #6068CD #8E94DC

Accessibility & contrast

On white

7.96
#3942B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3942B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942B7
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942B7#FFFFFF#000000##FFFFFF
##3942B71.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#004BB5
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3942b7;
/* rgb */ color: rgb(57, 66, 183);
/* oklch */ color: oklch(44.8% 0.182 273.1);
Tailwind
colors: {
  custom: {
    50: '#8076ce',
    500: '#3942b7',
    950: '#000000',
  },
}
SCSS
$custom: #3942b7;
$custom-light: #8076ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3942b7",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 235.714,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4483,
    "c": 0.18195,
    "h": 273.1
  },
  "luminance": 0.08185
}

Semantic roles & 50–950 ramp

primary
#3942B7
secondary
#C7C285
accent
#D24CDC
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3942B7

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

Preview Lab → · Contrast checker → · Palette generator →

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