#3942BE#3942BE

#3942BE is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.5% C 0.191 H 272.8°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#3942BE
RGBrgb(57, 66, 190)
HSLhsl(236, 54%, 48%)
HSVhsv(236, 70%, 75%)
CMYKcmyk(70%, 65.3%, 0%, 25.5%)
CIE-LABlab(34.97, 37.44, -66.07)
CIE-LCHlch(34.97, 75.94, 299.54°)
OKLaboklab(45.46% 0.0094 -0.1909)
OKLCHoklch(45.46% 0.191 272.8)
XYZxyz(12.9267, 8.4827, 49.6613)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942BE #BEB539
analogous
#3984BE #3942BE #7239BE
triadic
#3942BE #BE3942 #42BE39
tetradic
#3942BE #BE3984 #BEB539 #39BE72
square
#3942BE #BE3984 #BEB539 #39BE72
split-complementary
#3942BE #BE7239 #84BE39
monochromatic
#1D2160 #2B328F #3942BE #646BD0 #9398DF

Accessibility & contrast

On white

7.79
#3942BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3942BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942BE
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942BE#FFFFFF#000000##FFFFFF
##3942BE1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#00637A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3942be;
/* rgb */ color: rgb(57, 66, 190);
/* oklch */ color: oklch(45.5% 0.191 272.8);
Tailwind
colors: {
  custom: {
    50: '#8176d3',
    500: '#3942be',
    950: '#000000',
  },
}
SCSS
$custom: #3942be;
$custom-light: #8176d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3942be",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 235.94,
    "s": 53.846,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45459,
    "c": 0.19109,
    "h": 272.8
  },
  "luminance": 0.08484
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3942BE

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

Preview Lab → · Contrast checker → · Palette generator →

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