#3940A8#3940A8

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

Color values

HEX#3940A8
RGBrgb(57, 64, 168)
HSLhsl(236, 49%, 44%)
HSVhsv(236, 66%, 66%)
CMYKcmyk(66.1%, 61.9%, 0%, 34.1%)
CIE-LABlab(32.62, 31.00, -56.86)
CIE-LCHlch(32.62, 64.77, 298.60°)
OKLaboklab(43.16% 0.0122 -0.1639)
OKLCHoklch(43.16% 0.164 274.3)
XYZxyz(10.5863, 7.3629, 37.9015)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940A8 #A8A139
analogous
#3978A8 #3940A8 #6A39A8
triadic
#3940A8 #A83940 #40A839
tetradic
#3940A8 #A83978 #A8A139 #39A86A
square
#3940A8 #A83978 #A8A139 #39A86A
split-complementary
#3940A8 #A86A39 #78A839
monochromatic
#1A1D4D #292F7A #3940A8 #585FC6 #868BD6

Accessibility & contrast

On white

8.49
#3940A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3940A8
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940A8#FFFFFF#000000##FFFFFF
##3940A81.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3940a8;
/* rgb */ color: rgb(57, 64, 168);
/* oklch */ color: oklch(43.2% 0.164 274.3);
Tailwind
colors: {
  custom: {
    50: '#7d75c3',
    500: '#3940a8',
    950: '#000000',
  },
}
SCSS
$custom: #3940a8;
$custom-light: #7d75c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3940a8",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 236.216,
    "s": 49.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43158,
    "c": 0.16431,
    "h": 274.3
  },
  "luminance": 0.07364
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3940A8

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

Preview Lab → · Contrast checker → · Palette generator →

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