#3940DA#3940DA

#3940DA is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.8% C 0.228 H 271.9°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#3940DA
RGBrgb(57, 64, 218)
HSLhsl(237, 69%, 54%)
HSVhsv(237, 74%, 85%)
CMYKcmyk(73.9%, 70.6%, 0%, 14.5%)
CIE-LABlab(37.11, 48.14, -78.81)
CIE-LCHlch(37.11, 92.35, 301.42°)
OKLaboklab(47.79% 0.0075 -0.2281)
OKLCHoklch(47.79% 0.228 271.9)
XYZxyz(16.1714, 9.5969, 67.3162)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940DA #DAD339
analogous
#3991DA #3940DA #8339DA
triadic
#3940DA #DA3940 #40DA39
tetradic
#3940DA #DA3991 #DAD339 #39DA83
square
#3940DA #DA3991 #DAD339 #39DA83
split-complementary
#3940DA #DA8339 #91DA39
monochromatic
#181D81 #2228B4 #3940DA #6D72E4 #A0A3ED

Accessibility & contrast

On white

7.19
#3940DA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#3940DA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3940DA#FFFFFF#000000##FFFFFF
##3940DA1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDF
Deuteranopia (green-blind)
#004FD7
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3940da;
/* rgb */ color: rgb(57, 64, 218);
/* oklch */ color: oklch(47.8% 0.228 271.9);
Tailwind
colors: {
  custom: {
    50: '#8876e7',
    500: '#3940da',
    950: '#000000',
  },
}
SCSS
$custom: #3940da;
$custom-light: #8876e7;
$custom-dark: #000000;
JSON
{
  "hex": "#3940da",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 237.391,
    "s": 68.511,
    "l": 53.922
  },
  "oklch": {
    "l": 0.47791,
    "c": 0.2282,
    "h": 271.9
  },
  "luminance": 0.09599
}

Semantic roles & 50–950 ramp

primary
#3940DA
secondary
#DAD795
accent
#E43CEB
background
#F9F7FE
surface
#F1EDFD
border
#CBC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3940DA

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

Preview Lab → · Contrast checker → · Palette generator →

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