#3940AA#3940AA

#3940AA is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.167 H 274.2°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#3940AA
RGBrgb(57, 64, 170)
HSLhsl(236, 50%, 45%)
HSVhsv(236, 66%, 67%)
CMYKcmyk(66.5%, 62.4%, 0%, 33.3%)
CIE-LABlab(32.78, 31.71, -57.79)
CIE-LCHlch(32.78, 65.92, 298.75°)
OKLaboklab(43.33% 0.0121 -0.1666)
OKLCHoklch(43.33% 0.167 274.2)
XYZxyz(10.7740, 7.4380, 38.8903)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940AA #AAA339
analogous
#3979AA #3940AA #6B39AA
triadic
#3940AA #AA3940 #40AA39
tetradic
#3940AA #AA3979 #AAA339 #39AA6B
square
#3940AA #AA3979 #AAA339 #39AA6B
split-complementary
#3940AA #AA6B39 #79AA39
monochromatic
#1A1D4E #2A2F7C #3940AA #5960C7 #878CD7

Accessibility & contrast

On white

8.44
#3940AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3940AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3940AA#FFFFFF#000000##FFFFFF
##3940AA1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3940aa;
/* rgb */ color: rgb(57, 64, 170);
/* oklch */ color: oklch(43.3% 0.167 274.2);
Tailwind
colors: {
  custom: {
    50: '#7d75c4',
    500: '#3940aa',
    950: '#000000',
  },
}
SCSS
$custom: #3940aa;
$custom-light: #7d75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3940aa",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 236.283,
    "s": 49.78,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43331,
    "c": 0.16702,
    "h": 274.2
  },
  "luminance": 0.07439
}

Semantic roles & 50–950 ramp

primary
#3940AA
secondary
#C1BD7E
accent
#D14ED9
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3940AA

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

Preview Lab → · Contrast checker → · Palette generator →

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