#3942AE#3942AE

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

Color values

HEX#3942AE
RGBrgb(57, 66, 174)
HSLhsl(235, 51%, 45%)
HSVhsv(235, 67%, 68%)
CMYKcmyk(67.2%, 62.1%, 0%, 31.8%)
CIE-LABlab(33.61, 31.83, -58.84)
CIE-LCHlch(33.61, 66.90, 298.42°)
OKLaboklab(44.04% 0.0103 -0.1696)
OKLCHoklch(44.04% 0.17 273.5)
XYZxyz(11.2730, 7.8213, 40.9518)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942AE #AEA539
analogous
#397CAE #3942AE #6B39AE
triadic
#3942AE #AE3942 #42AE39
tetradic
#3942AE #AE397C #AEA539 #39AE6B
square
#3942AE #AE397C #AEA539 #39AE6B
split-complementary
#3942AE #AE6B39 #7CAE39
monochromatic
#1B1F52 #2A3180 #3942AE #5B63C9 #898FD8

Accessibility & contrast

On white

8.19
#3942AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##3942AE#FFFFFF#000000##FFFFFF
##3942AE1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3942ae;
/* rgb */ color: rgb(57, 66, 174);
/* oklch */ color: oklch(44.0% 0.170 273.5);
Tailwind
colors: {
  custom: {
    50: '#7e76c7',
    500: '#3942ae',
    950: '#000000',
  },
}
SCSS
$custom: #3942ae;
$custom-light: #7e76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3942ae",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 235.385,
    "s": 50.649,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4404,
    "c": 0.16994,
    "h": 273.5
  },
  "luminance": 0.07822
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3942AE

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

Preview Lab → · Contrast checker → · Palette generator →

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