#3940A9#3940A9

#3940A9 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.166 H 274.2°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#3940A9
RGBrgb(57, 64, 169)
HSLhsl(236, 50%, 44%)
HSVhsv(236, 66%, 66%)
CMYKcmyk(66.3%, 62.1%, 0%, 33.7%)
CIE-LABlab(32.70, 31.35, -57.33)
CIE-LCHlch(32.70, 65.34, 298.68°)
OKLaboklab(43.24% 0.0122 -0.1652)
OKLCHoklch(43.24% 0.166 274.2)
XYZxyz(10.6798, 7.4003, 38.3940)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940A9 #A9A239
analogous
#3978A9 #3940A9 #6A39A9
triadic
#3940A9 #A93940 #40A939
tetradic
#3940A9 #A93978 #A9A239 #39A96A
square
#3940A9 #A93978 #A9A239 #39A96A
split-complementary
#3940A9 #A96A39 #78A939
monochromatic
#1A1D4D #2A2F7B #3940A9 #585FC7 #868BD6

Accessibility & contrast

On white

8.47
#3940A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#3940A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940A9
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940A9#FFFFFF#000000##FFFFFF
##3940A91.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AC
Deuteranopia (green-blind)
#0048A7
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3940a9;
/* rgb */ color: rgb(57, 64, 169);
/* oklch */ color: oklch(43.2% 0.166 274.2);
Tailwind
colors: {
  custom: {
    50: '#7d75c3',
    500: '#3940a9',
    950: '#000000',
  },
}
SCSS
$custom: #3940a9;
$custom-light: #7d75c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3940a9",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 236.25,
    "s": 49.558,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43244,
    "c": 0.16567,
    "h": 274.2
  },
  "luminance": 0.07401
}

Semantic roles & 50–950 ramp

primary
#3940A9
secondary
#C0BC7E
accent
#D04FD9
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3940A9

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

Preview Lab → · Contrast checker → · Palette generator →

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