#3942BC#3942BC

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

Color values

HEX#3942BC
RGBrgb(57, 66, 188)
HSLhsl(236, 53%, 48%)
HSVhsv(236, 70%, 74%)
CMYKcmyk(69.7%, 64.9%, 0%, 26.3%)
CIE-LABlab(34.79, 36.74, -65.18)
CIE-LCHlch(34.79, 74.83, 299.41°)
OKLaboklab(45.28% 0.0095 -0.1882)
OKLCHoklch(45.28% 0.188 272.9)
XYZxyz(12.7096, 8.3959, 48.5180)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942BC #BCB339
analogous
#3983BC #3942BC #7139BC
triadic
#3942BC #BC3942 #42BC39
tetradic
#3942BC #BC3983 #BCB339 #39BC71
square
#3942BC #BC3983 #BCB339 #39BC71
split-complementary
#3942BC #BC7139 #83BC39
monochromatic
#1D215E #2B328D #3942BC #636AD0 #9297DE

Accessibility & contrast

On white

7.84
#3942BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3942BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942BC
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942BC#FFFFFF#000000##FFFFFF
##3942BC1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3942bc;
/* rgb */ color: rgb(57, 66, 188);
/* oklch */ color: oklch(45.3% 0.188 272.9);
Tailwind
colors: {
  custom: {
    50: '#8176d1',
    500: '#3942bc',
    950: '#000000',
  },
}
SCSS
$custom: #3942bc;
$custom-light: #8176d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3942bc",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 235.878,
    "s": 53.469,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45278,
    "c": 0.18849,
    "h": 272.9
  },
  "luminance": 0.08397
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3942BC

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

Preview Lab → · Contrast checker → · Palette generator →

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