#3942A2#3942A2

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

Color values

HEX#3942A2
RGBrgb(57, 66, 162)
HSLhsl(235, 48%, 43%)
HSVhsv(235, 65%, 64%)
CMYKcmyk(64.8%, 59.3%, 0%, 36.5%)
CIE-LABlab(32.64, 27.58, -53.22)
CIE-LCHlch(32.64, 59.94, 297.40°)
OKLaboklab(43.03% 0.0106 -0.1531)
OKLCHoklch(43.03% 0.153 273.9)
XYZxyz(10.1550, 7.3741, 35.0636)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942A2 #A29939
analogous
#3976A2 #3942A2 #6439A2
triadic
#3942A2 #A23942 #42A239
tetradic
#3942A2 #A23976 #A29939 #39A264
square
#3942A2 #A23976 #A29939 #39A264
split-complementary
#3942A2 #A26439 #76A239
monochromatic
#191D47 #293075 #3942A2 #555EC3 #8289D3

Accessibility & contrast

On white

8.48
#3942A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3942A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942A2
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942A2#FFFFFF#000000##FFFFFF
##3942A21.008.482.478.48
#FFFFFF8.481.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3942a2;
/* rgb */ color: rgb(57, 66, 162);
/* oklch */ color: oklch(43.0% 0.153 273.9);
Tailwind
colors: {
  custom: {
    50: '#7b76be',
    500: '#3942a2',
    950: '#000000',
  },
}
SCSS
$custom: #3942a2;
$custom-light: #7b76be;
$custom-dark: #000000;
JSON
{
  "hex": "#3942a2",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 234.857,
    "s": 47.945,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43026,
    "c": 0.15349,
    "h": 273.9
  },
  "luminance": 0.07375
}

Semantic roles & 50–950 ramp

primary
#3942A2
secondary
#BDB77A
accent
#CC50D8
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3942A2

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

Preview Lab → · Contrast checker → · Palette generator →

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