#3940A1#3940A1

#3940A1 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.155 H 274.6°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#3940A1
RGBrgb(57, 64, 161)
HSLhsl(236, 48%, 43%)
HSVhsv(236, 65%, 63%)
CMYKcmyk(64.6%, 60.2%, 0%, 36.9%)
CIE-LABlab(32.05, 28.53, -53.57)
CIE-LCHlch(32.05, 60.70, 298.04°)
OKLaboklab(42.56% 0.0124 -0.1542)
OKLCHoklch(42.56% 0.155 274.6)
XYZxyz(9.9516, 7.1090, 34.5590)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940A1 #A19A39
analogous
#3974A1 #3940A1 #6639A1
triadic
#3940A1 #A13940 #40A139
tetradic
#3940A1 #A13974 #A19A39 #39A166
square
#3940A1 #A13974 #A19A39 #39A166
split-complementary
#3940A1 #A16639 #74A139
monochromatic
#191C47 #292E74 #3940A1 #555CC3 #8287D3

Accessibility & contrast

On white

8.67
#3940A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3940A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940A1
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940A1#FFFFFF#000000##FFFFFF
##3940A11.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#00479F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3940a1;
/* rgb */ color: rgb(57, 64, 161);
/* oklch */ color: oklch(42.6% 0.155 274.6);
Tailwind
colors: {
  custom: {
    50: '#7b74be',
    500: '#3940a1',
    950: '#000000',
  },
}
SCSS
$custom: #3940a1;
$custom-light: #7b74be;
$custom-dark: #000000;
JSON
{
  "hex": "#3940a1",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 235.962,
    "s": 47.706,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42564,
    "c": 0.15469,
    "h": 274.6
  },
  "luminance": 0.0711
}

Semantic roles & 50–950 ramp

primary
#3940A1
secondary
#BCB879
accent
#CE50D7
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3940A1

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

Preview Lab → · Contrast checker → · Palette generator →

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