#3942A5#3942A5

#3942A5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.158 H 273.8°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#3942A5
RGBrgb(57, 66, 165)
HSLhsl(235, 49%, 44%)
HSVhsv(235, 65%, 65%)
CMYKcmyk(65.5%, 60%, 0%, 35.3%)
CIE-LABlab(32.88, 28.65, -54.64)
CIE-LCHlch(32.88, 61.69, 297.67°)
OKLaboklab(43.28% 0.0106 -0.1573)
OKLCHoklch(43.28% 0.158 273.8)
XYZxyz(10.4248, 7.4820, 36.4848)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3942A5 #A59C39
analogous
#3978A5 #3942A5 #6639A5
triadic
#3942A5 #A53942 #42A539
tetradic
#3942A5 #A53978 #A59C39 #39A566
square
#3942A5 #A53978 #A59C39 #39A566
split-complementary
#3942A5 #A56639 #78A539
monochromatic
#1A1E4A #293078 #3942A5 #5660C5 #848BD4

Accessibility & contrast

On white

8.41
#3942A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#3942A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3942A5#FFFFFF#000000##FFFFFF
##3942A51.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3942a5;
/* rgb */ color: rgb(57, 66, 165);
/* oklch */ color: oklch(43.3% 0.158 273.8);
Tailwind
colors: {
  custom: {
    50: '#7c76c0',
    500: '#3942a5',
    950: '#000000',
  },
}
SCSS
$custom: #3942a5;
$custom-light: #7c76c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3942a5",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 235,
    "s": 48.649,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43275,
    "c": 0.15765,
    "h": 273.8
  },
  "luminance": 0.07483
}

Semantic roles & 50–950 ramp

primary
#3942A5
secondary
#BEB97B
accent
#CD50D8
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3942A5

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

Preview Lab → · Contrast checker → · Palette generator →

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