#3940A2#3940A2

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

Color values

HEX#3940A2
RGBrgb(57, 64, 162)
HSLhsl(236, 48%, 43%)
HSVhsv(236, 65%, 64%)
CMYKcmyk(64.8%, 60.5%, 0%, 36.5%)
CIE-LABlab(32.13, 28.89, -54.05)
CIE-LCHlch(32.13, 61.28, 298.12°)
OKLaboklab(42.65% 0.0124 -0.1556)
OKLCHoklch(42.65% 0.156 274.5)
XYZxyz(10.0402, 7.1444, 35.0253)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940A2 #A29B39
analogous
#3974A2 #3940A2 #6639A2
triadic
#3940A2 #A23940 #40A239
tetradic
#3940A2 #A23974 #A29B39 #39A266
square
#3940A2 #A23974 #A29B39 #39A266
split-complementary
#3940A2 #A26639 #74A239
monochromatic
#191C47 #292E75 #3940A2 #555CC3 #8288D3

Accessibility & contrast

On white

8.65
#3940A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3940A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940A2
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940A2#FFFFFF#000000##FFFFFF
##3940A21.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3940a2;
/* rgb */ color: rgb(57, 64, 162);
/* oklch */ color: oklch(42.6% 0.156 274.5);
Tailwind
colors: {
  custom: {
    50: '#7b75be',
    500: '#3940a2',
    950: '#000000',
  },
}
SCSS
$custom: #3940a2;
$custom-light: #7b75be;
$custom-dark: #000000;
JSON
{
  "hex": "#3940a2",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 236,
    "s": 47.945,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42648,
    "c": 0.15607,
    "h": 274.5
  },
  "luminance": 0.07145
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3940A2

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

Preview Lab → · Contrast checker → · Palette generator →

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