#3940A4#3940A4

#3940A4 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.159 H 274.5°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#3940A4
RGBrgb(57, 64, 164)
HSLhsl(236, 48%, 43%)
HSVhsv(236, 65%, 64%)
CMYKcmyk(65.2%, 61%, 0%, 35.7%)
CIE-LABlab(32.29, 29.59, -54.99)
CIE-LCHlch(32.29, 62.45, 298.29°)
OKLaboklab(42.82% 0.0123 -0.1584)
OKLCHoklch(42.82% 0.159 274.5)
XYZxyz(10.2194, 7.2161, 35.9691)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940A4 #A49D39
analogous
#3975A4 #3940A4 #6739A4
triadic
#3940A4 #A43940 #40A439
tetradic
#3940A4 #A43975 #A49D39 #39A467
square
#3940A4 #A43975 #A49D39 #39A467
split-complementary
#3940A4 #A46739 #75A439
monochromatic
#191D49 #292E77 #3940A4 #565DC4 #8389D4

Accessibility & contrast

On white

8.59
#3940A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#3940A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940A4
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940A4#FFFFFF#000000##FFFFFF
##3940A41.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3940a4;
/* rgb */ color: rgb(57, 64, 164);
/* oklch */ color: oklch(42.8% 0.159 274.5);
Tailwind
colors: {
  custom: {
    50: '#7c75c0',
    500: '#3940a4',
    950: '#000000',
  },
}
SCSS
$custom: #3940a4;
$custom-light: #7c75c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3940a4",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 236.075,
    "s": 48.416,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42816,
    "c": 0.15884,
    "h": 274.5
  },
  "luminance": 0.07217
}

Semantic roles & 50–950 ramp

primary
#3940A4
secondary
#BEB97B
accent
#CF50D8
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3940A4

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

Preview Lab → · Contrast checker → · Palette generator →

#3940A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva