#3942AA#3942AA

#3942AA is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.7% C 0.165 H 273.6°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#3942AA
RGBrgb(57, 66, 170)
HSLhsl(235, 50%, 45%)
HSVhsv(235, 66%, 67%)
CMYKcmyk(66.5%, 61.2%, 0%, 33.3%)
CIE-LABlab(33.28, 30.42, -56.98)
CIE-LCHlch(33.28, 64.59, 298.10°)
OKLaboklab(43.7% 0.0104 -0.1642)
OKLCHoklch(43.7% 0.165 273.6)
XYZxyz(10.8888, 7.6676, 38.9286)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942AA #AAA139
analogous
#397BAA #3942AA #6839AA
triadic
#3942AA #AA3942 #42AA39
tetradic
#3942AA #AA397B #AAA139 #39AA68
square
#3942AA #AA397B #AAA139 #39AA68
split-complementary
#3942AA #AA6839 #7BAA39
monochromatic
#1A1E4E #2A307C #3942AA #5962C7 #878DD7

Accessibility & contrast

On white

8.29
#3942AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3942AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3942AA#FFFFFF#000000##FFFFFF
##3942AA1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3942aa;
/* rgb */ color: rgb(57, 66, 170);
/* oklch */ color: oklch(43.7% 0.165 273.6);
Tailwind
colors: {
  custom: {
    50: '#7d76c4',
    500: '#3942aa',
    950: '#000000',
  },
}
SCSS
$custom: #3942aa;
$custom-light: #7d76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3942aa",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 235.221,
    "s": 49.78,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43697,
    "c": 0.16452,
    "h": 273.6
  },
  "luminance": 0.07669
}

Semantic roles & 50–950 ramp

primary
#3942AA
secondary
#C1BB7E
accent
#CE4ED9
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3942AA

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

Preview Lab → · Contrast checker → · Palette generator →

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