#3940A7#3940A7

#3940A7 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.163 H 274.3°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#3940A7
RGBrgb(57, 64, 167)
HSLhsl(236, 49%, 44%)
HSVhsv(236, 66%, 65%)
CMYKcmyk(65.9%, 61.7%, 0%, 34.5%)
CIE-LABlab(32.54, 30.65, -56.40)
CIE-LCHlch(32.54, 64.19, 298.52°)
OKLaboklab(43.07% 0.0122 -0.1625)
OKLCHoklch(43.07% 0.163 274.3)
XYZxyz(10.4935, 7.3258, 37.4127)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940A7 #A7A039
analogous
#3977A7 #3940A7 #6939A7
triadic
#3940A7 #A73940 #40A739
tetradic
#3940A7 #A73977 #A7A039 #39A769
square
#3940A7 #A73977 #A7A039 #39A769
split-complementary
#3940A7 #A76939 #77A739
monochromatic
#1A1D4C #292F79 #3940A7 #575EC6 #858AD5

Accessibility & contrast

On white

8.52
#3940A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3940A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940A7
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940A7#FFFFFF#000000##FFFFFF
##3940A71.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#0048A5
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3940a7;
/* rgb */ color: rgb(57, 64, 167);
/* oklch */ color: oklch(43.1% 0.163 274.3);
Tailwind
colors: {
  custom: {
    50: '#7d75c2',
    500: '#3940a7',
    950: '#000000',
  },
}
SCSS
$custom: #3940a7;
$custom-light: #7d75c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3940a7",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 236.182,
    "s": 49.107,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43072,
    "c": 0.16295,
    "h": 274.3
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

primary
#3940A7
secondary
#BFBB7D
accent
#D04FD9
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3940A7

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

Preview Lab → · Contrast checker → · Palette generator →

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