#3940AC#3940AC

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

Color values

HEX#3940AC
RGBrgb(57, 64, 172)
HSLhsl(236, 50%, 45%)
HSVhsv(236, 67%, 67%)
CMYKcmyk(66.9%, 62.8%, 0%, 32.5%)
CIE-LABlab(32.95, 32.41, -58.72)
CIE-LCHlch(32.95, 67.07, 298.90°)
OKLaboklab(43.51% 0.012 -0.1693)
OKLCHoklch(43.51% 0.17 274.1)
XYZxyz(10.9647, 7.5142, 39.8943)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940AC #ACA539
analogous
#3979AC #3940AC #6C39AC
triadic
#3940AC #AC3940 #40AC39
tetradic
#3940AC #AC3979 #ACA539 #39AC6C
square
#3940AC #AC3979 #ACA539 #39AC6C
split-complementary
#3940AC #AC6C39 #79AC39
monochromatic
#1B1E50 #2A2F7E #3940AC #5A61C8 #888DD8

Accessibility & contrast

On white

8.39
#3940AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##3940AC#FFFFFF#000000##FFFFFF
##3940AC1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#005B70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3940ac;
/* rgb */ color: rgb(57, 64, 172);
/* oklch */ color: oklch(43.5% 0.170 274.1);
Tailwind
colors: {
  custom: {
    50: '#7e75c6',
    500: '#3940ac',
    950: '#000000',
  },
}
SCSS
$custom: #3940ac;
$custom-light: #7e75c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3940ac",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 236.348,
    "s": 50.218,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43505,
    "c": 0.16973,
    "h": 274.1
  },
  "luminance": 0.07515
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3940AC

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

Preview Lab → · Contrast checker → · Palette generator →

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