#3940AB#3940AB

#3940AB is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.168 H 274.1°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#3940AB
RGBrgb(57, 64, 171)
HSLhsl(236, 50%, 45%)
HSVhsv(236, 67%, 67%)
CMYKcmyk(66.7%, 62.6%, 0%, 32.9%)
CIE-LABlab(32.87, 32.06, -58.26)
CIE-LCHlch(32.87, 66.49, 298.82°)
OKLaboklab(43.42% 0.0121 -0.1679)
OKLCHoklch(43.42% 0.168 274.1)
XYZxyz(10.8690, 7.4760, 39.3904)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940AB #ABA439
analogous
#3979AB #3940AB #6B39AB
triadic
#3940AB #AB3940 #40AB39
tetradic
#3940AB #AB3979 #ABA439 #39AB6B
square
#3940AB #AB3979 #ABA439 #39AB6B
split-complementary
#3940AB #AB6B39 #79AB39
monochromatic
#1A1E4F #2A2F7D #3940AB #5960C8 #878CD7

Accessibility & contrast

On white

8.42
#3940AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#3940AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940AB
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940AB#FFFFFF#000000##FFFFFF
##3940AB1.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3940ab;
/* rgb */ color: rgb(57, 64, 171);
/* oklch */ color: oklch(43.4% 0.168 274.1);
Tailwind
colors: {
  custom: {
    50: '#7d75c5',
    500: '#3940ab',
    950: '#000000',
  },
}
SCSS
$custom: #3940ab;
$custom-light: #7d75c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3940ab",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 236.316,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43417,
    "c": 0.16837,
    "h": 274.1
  },
  "luminance": 0.07477
}

Semantic roles & 50–950 ramp

primary
#3940AB
secondary
#C1BD7F
accent
#D14EDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3940AB

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

Preview Lab → · Contrast checker → · Palette generator →

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