#3942C1#3942C1

#3942C1 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.7% C 0.195 H 272.7°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#3942C1
RGBrgb(57, 66, 193)
HSLhsl(236, 54%, 49%)
HSVhsv(236, 70%, 76%)
CMYKcmyk(70.5%, 65.8%, 0%, 24.3%)
CIE-LABlab(35.23, 38.48, -67.40)
CIE-LCHlch(35.23, 77.61, 299.72°)
OKLaboklab(45.73% 0.0092 -0.1947)
OKLCHoklch(45.73% 0.195 272.7)
XYZxyz(13.2580, 8.6152, 51.4059)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942C1 #C1B839
analogous
#3986C1 #3942C1 #7439C1
triadic
#3942C1 #C13942 #42C139
tetradic
#3942C1 #C13986 #C1B839 #39C174
square
#3942C1 #C13986 #C1B839 #39C174
split-complementary
#3942C1 #C17439 #86C139
monochromatic
#1D2263 #2B3292 #3942C1 #666DD2 #959AE0

Accessibility & contrast

On white

7.71
#3942C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3942C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942C1
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942C1#FFFFFF#000000##FFFFFF
##3942C11.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3942c1;
/* rgb */ color: rgb(57, 66, 193);
/* oklch */ color: oklch(45.7% 0.195 272.7);
Tailwind
colors: {
  custom: {
    50: '#8277d5',
    500: '#3942c1',
    950: '#000000',
  },
}
SCSS
$custom: #3942c1;
$custom-light: #8277d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3942c1",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 236.029,
    "s": 54.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45733,
    "c": 0.19495,
    "h": 272.7
  },
  "luminance": 0.08617
}

Semantic roles & 50–950 ramp

primary
#3942C1
secondary
#CBC78B
accent
#D44ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3942C1

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

Preview Lab → · Contrast checker → · Palette generator →

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