#3940A5#3940A5

#3940A5 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.160 H 274.4°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#3940A5
RGBrgb(57, 64, 165)
HSLhsl(236, 49%, 44%)
HSVhsv(236, 65%, 65%)
CMYKcmyk(65.5%, 61.2%, 0%, 35.3%)
CIE-LABlab(32.37, 29.95, -55.46)
CIE-LCHlch(32.37, 63.03, 298.37°)
OKLaboklab(42.9% 0.0123 -0.1597)
OKLCHoklch(42.9% 0.16 274.4)
XYZxyz(10.3100, 7.2524, 36.4465)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940A5 #A59E39
analogous
#3976A5 #3940A5 #6839A5
triadic
#3940A5 #A53940 #40A539
tetradic
#3940A5 #A53976 #A59E39 #39A568
square
#3940A5 #A53976 #A59E39 #39A568
split-complementary
#3940A5 #A56839 #76A539
monochromatic
#1A1D4A #292E78 #3940A5 #565EC5 #8489D4

Accessibility & contrast

On white

8.57
#3940A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3940A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940A5
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940A5#FFFFFF#000000##FFFFFF
##3940A51.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3940a5;
/* rgb */ color: rgb(57, 64, 165);
/* oklch */ color: oklch(42.9% 0.160 274.4);
Tailwind
colors: {
  custom: {
    50: '#7c75c1',
    500: '#3940a5',
    950: '#000000',
  },
}
SCSS
$custom: #3940a5;
$custom-light: #7c75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3940a5",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 236.111,
    "s": 48.649,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42901,
    "c": 0.16021,
    "h": 274.4
  },
  "luminance": 0.07253
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3940A5

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

Preview Lab → · Contrast checker → · Palette generator →

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