#3942AD#3942AD

#3942AD is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.0% C 0.169 H 273.5°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#3942AD
RGBrgb(57, 66, 173)
HSLhsl(235, 50%, 45%)
HSVhsv(235, 67%, 68%)
CMYKcmyk(67.1%, 61.8%, 0%, 32.2%)
CIE-LABlab(33.53, 31.48, -58.37)
CIE-LCHlch(33.53, 66.32, 298.34°)
OKLaboklab(43.95% 0.0104 -0.1683)
OKLCHoklch(43.95% 0.169 273.5)
XYZxyz(11.1759, 7.7824, 40.4403)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942AD #ADA439
analogous
#397CAD #3942AD #6A39AD
triadic
#3942AD #AD3942 #42AD39
tetradic
#3942AD #AD397C #ADA439 #39AD6A
square
#3942AD #AD397C #ADA439 #39AD6A
split-complementary
#3942AD #AD6A39 #7CAD39
monochromatic
#1B1F51 #2A307F #3942AD #5A63C9 #888FD8

Accessibility & contrast

On white

8.21
#3942AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3942AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3942AD
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3942AD#FFFFFF#000000##FFFFFF
##3942AD1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B0
Deuteranopia (green-blind)
#004AAB
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3942ad;
/* rgb */ color: rgb(57, 66, 173);
/* oklch */ color: oklch(44.0% 0.169 273.5);
Tailwind
colors: {
  custom: {
    50: '#7e76c6',
    500: '#3942ad',
    950: '#000000',
  },
}
SCSS
$custom: #3942ad;
$custom-light: #7e76c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3942ad",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 235.345,
    "s": 50.435,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43954,
    "c": 0.1686,
    "h": 273.5
  },
  "luminance": 0.07783
}

Semantic roles & 50–950 ramp

primary
#3942AD
secondary
#C2BD80
accent
#CF4EDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3942AD

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

Preview Lab → · Contrast checker → · Palette generator →

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