#3940AE#3940AE

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

Color values

HEX#3940AE
RGBrgb(57, 64, 174)
HSLhsl(236, 51%, 45%)
HSVhsv(236, 67%, 68%)
CMYKcmyk(67.2%, 63.2%, 0%, 31.8%)
CIE-LABlab(33.12, 33.11, -59.64)
CIE-LCHlch(33.12, 68.21, 299.04°)
OKLaboklab(43.68% 0.0119 -0.172)
OKLCHoklch(43.68% 0.172 274)
XYZxyz(11.1582, 7.5916, 40.9135)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940AE #AEA739
analogous
#397BAE #3940AE #6C39AE
triadic
#3940AE #AE3940 #40AE39
tetradic
#3940AE #AE397B #AEA739 #39AE6C
square
#3940AE #AE397B #AEA739 #39AE6C
split-complementary
#3940AE #AE6C39 #7BAE39
monochromatic
#1B1E52 #2A2F80 #3940AE #5B62C9 #898ED8

Accessibility & contrast

On white

8.34
#3940AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#3940AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940AE
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940AE#FFFFFF#000000##FFFFFF
##3940AE1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3940ae;
/* rgb */ color: rgb(57, 64, 174);
/* oklch */ color: oklch(43.7% 0.172 274.0);
Tailwind
colors: {
  custom: {
    50: '#7e75c7',
    500: '#3940ae',
    950: '#000000',
  },
}
SCSS
$custom: #3940ae;
$custom-light: #7e75c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3940ae",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 236.41,
    "s": 50.649,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4368,
    "c": 0.17241,
    "h": 274
  },
  "luminance": 0.07593
}

Semantic roles & 50–950 ramp

primary
#3940AE
secondary
#C3BF80
accent
#D24EDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3940AE

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

Preview Lab → · Contrast checker → · Palette generator →

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