#3940A3#3940A3

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

Color values

HEX#3940A3
RGBrgb(57, 64, 163)
HSLhsl(236, 48%, 43%)
HSVhsv(236, 65%, 64%)
CMYKcmyk(65%, 60.7%, 0%, 36.1%)
CIE-LABlab(32.21, 29.24, -54.52)
CIE-LCHlch(32.21, 61.87, 298.21°)
OKLaboklab(42.73% 0.0124 -0.157)
OKLCHoklch(42.73% 0.157 274.5)
XYZxyz(10.1294, 7.1801, 35.4953)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940A3 #A39C39
analogous
#3975A3 #3940A3 #6739A3
triadic
#3940A3 #A33940 #40A339
tetradic
#3940A3 #A33975 #A39C39 #39A367
square
#3940A3 #A33975 #A39C39 #39A367
split-complementary
#3940A3 #A36739 #75A339
monochromatic
#191C48 #292E76 #3940A3 #555DC4 #8388D4

Accessibility & contrast

On white

8.62
#3940A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3940A3
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940A3#FFFFFF#000000##FFFFFF
##3940A31.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3940a3;
/* rgb */ color: rgb(57, 64, 163);
/* oklch */ color: oklch(42.7% 0.157 274.5);
Tailwind
colors: {
  custom: {
    50: '#7c75bf',
    500: '#3940a3',
    950: '#000000',
  },
}
SCSS
$custom: #3940a3;
$custom-light: #7c75bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3940a3",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 236.038,
    "s": 48.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42732,
    "c": 0.15746,
    "h": 274.5
  },
  "luminance": 0.07181
}

Semantic roles & 50–950 ramp

primary
#3940A3
secondary
#BDB97A
accent
#CF50D8
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3940A3

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

Preview Lab → · Contrast checker → · Palette generator →

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