#3942A4#3942A4

#3942A4 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.156 H 273.9°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#3942A4
RGBrgb(57, 66, 164)
HSLhsl(235, 48%, 43%)
HSVhsv(235, 65%, 64%)
CMYKcmyk(65.2%, 59.8%, 0%, 35.7%)
CIE-LABlab(32.80, 28.30, -54.17)
CIE-LCHlch(32.80, 61.11, 297.58°)
OKLaboklab(43.19% 0.0106 -0.1559)
OKLCHoklch(43.19% 0.156 273.9)
XYZxyz(10.3342, 7.4457, 36.0073)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942A4 #A49B39
analogous
#3977A4 #3942A4 #6539A4
triadic
#3942A4 #A43942 #42A439
tetradic
#3942A4 #A43977 #A49B39 #39A465
square
#3942A4 #A43977 #A49B39 #39A465
split-complementary
#3942A4 #A46539 #77A439
monochromatic
#191D49 #293077 #3942A4 #565FC4 #838AD4

Accessibility & contrast

On white

8.44
#3942A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3942A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942A4
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942A4#FFFFFF#000000##FFFFFF
##3942A41.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3942a4;
/* rgb */ color: rgb(57, 66, 164);
/* oklch */ color: oklch(43.2% 0.156 273.9);
Tailwind
colors: {
  custom: {
    50: '#7c76c0',
    500: '#3942a4',
    950: '#000000',
  },
}
SCSS
$custom: #3942a4;
$custom-light: #7c76c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3942a4",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 234.953,
    "s": 48.416,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43192,
    "c": 0.15627,
    "h": 273.9
  },
  "luminance": 0.07447
}

Semantic roles & 50–950 ramp

primary
#3942A4
secondary
#BEB87B
accent
#CD50D8
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3942A4

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

Preview Lab → · Contrast checker → · Palette generator →

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