#3940AD#3940AD

#3940AD is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.6% C 0.171 H 274.0°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#3940AD
RGBrgb(57, 64, 173)
HSLhsl(236, 50%, 45%)
HSVhsv(236, 67%, 68%)
CMYKcmyk(67.1%, 63%, 0%, 32.2%)
CIE-LABlab(33.03, 32.76, -59.18)
CIE-LCHlch(33.03, 67.64, 298.97°)
OKLaboklab(43.59% 0.012 -0.1706)
OKLCHoklch(43.59% 0.171 274)
XYZxyz(11.0611, 7.5528, 40.4020)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940AD #ADA639
analogous
#397AAD #3940AD #6C39AD
triadic
#3940AD #AD3940 #40AD39
tetradic
#3940AD #AD397A #ADA639 #39AD6C
square
#3940AD #AD397A #ADA639 #39AD6C
split-complementary
#3940AD #AD6C39 #7AAD39
monochromatic
#1B1E51 #2A2F7F #3940AD #5A61C9 #888DD8

Accessibility & contrast

On white

8.36
#3940AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3940AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940AD
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940AD#FFFFFF#000000##FFFFFF
##3940AD1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#0049AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3940ad;
/* rgb */ color: rgb(57, 64, 173);
/* oklch */ color: oklch(43.6% 0.171 274.0);
Tailwind
colors: {
  custom: {
    50: '#7e75c6',
    500: '#3940ad',
    950: '#000000',
  },
}
SCSS
$custom: #3940ad;
$custom-light: #7e75c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3940ad",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 236.379,
    "s": 50.435,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43592,
    "c": 0.17107,
    "h": 274
  },
  "luminance": 0.07554
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3940AD

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

Preview Lab → · Contrast checker → · Palette generator →

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