#3940A6#3940A6

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

Color values

HEX#3940A6
RGBrgb(57, 64, 166)
HSLhsl(236, 49%, 44%)
HSVhsv(236, 66%, 65%)
CMYKcmyk(65.7%, 61.4%, 0%, 34.9%)
CIE-LABlab(32.46, 30.30, -55.93)
CIE-LCHlch(32.46, 63.61, 298.45°)
OKLaboklab(42.99% 0.0123 -0.1611)
OKLCHoklch(42.99% 0.162 274.4)
XYZxyz(10.4014, 7.2889, 36.9278)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940A6 #A69F39
analogous
#3976A6 #3940A6 #6839A6
triadic
#3940A6 #A63940 #40A639
tetradic
#3940A6 #A63976 #A69F39 #39A668
square
#3940A6 #A63976 #A69F39 #39A668
split-complementary
#3940A6 #A66839 #76A639
monochromatic
#1A1D4B #292E78 #3940A6 #575EC5 #848AD5

Accessibility & contrast

On white

8.54
#3940A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3940A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940A6
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940A6#FFFFFF#000000##FFFFFF
##3940A61.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3940a6;
/* rgb */ color: rgb(57, 64, 166);
/* oklch */ color: oklch(43.0% 0.162 274.4);
Tailwind
colors: {
  custom: {
    50: '#7c75c1',
    500: '#3940a6',
    950: '#000000',
  },
}
SCSS
$custom: #3940a6;
$custom-light: #7c75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3940a6",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 236.147,
    "s": 48.879,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42987,
    "c": 0.16158,
    "h": 274.4
  },
  "luminance": 0.0729
}

Semantic roles & 50–950 ramp

primary
#3940A6
secondary
#BFBB7C
accent
#D04FD8
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3940A6

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

Preview Lab → · Contrast checker → · Palette generator →

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