#3940DD#3940DD

#3940DD is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.232 H 271.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#3940DD
RGBrgb(57, 64, 221)
HSLhsl(237, 71%, 55%)
HSVhsv(237, 74%, 87%)
CMYKcmyk(74.2%, 71%, 0%, 13.3%)
CIE-LABlab(37.40, 49.13, -80.05)
CIE-LCHlch(37.40, 93.93, 301.54°)
OKLaboklab(48.09% 0.0071 -0.2317)
OKLCHoklch(48.09% 0.232 271.8)
XYZxyz(16.5675, 9.7554, 69.4024)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940DD #DDD639
analogous
#3992DD #3940DD #8439DD
triadic
#3940DD #DD3940 #40DD39
tetradic
#3940DD #DD3992 #DDD639 #39DD84
square
#3940DD #DD3992 #DDD639 #39DD84
split-complementary
#3940DD #DD8439 #92DD39
monochromatic
#171B85 #2026B9 #3940DD #6D72E6 #A1A5EF

Accessibility & contrast

On white

7.12
#3940DD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#3940DD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3940DD#FFFFFF#000000##FFFFFF
##3940DD1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E2
Deuteranopia (green-blind)
#0050DA
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3940dd;
/* rgb */ color: rgb(57, 64, 221);
/* oklch */ color: oklch(48.1% 0.232 271.8);
Tailwind
colors: {
  custom: {
    50: '#8876e9',
    500: '#3940dd',
    950: '#000000',
  },
}
SCSS
$custom: #3940dd;
$custom-light: #8876e9;
$custom-dark: #000000;
JSON
{
  "hex": "#3940dd",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 237.439,
    "s": 70.69,
    "l": 54.51
  },
  "oklch": {
    "l": 0.48087,
    "c": 0.2318,
    "h": 271.8
  },
  "luminance": 0.09757
}

Semantic roles & 50–950 ramp

primary
#3940DD
secondary
#DCD996
accent
#E63AED
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3940DD

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

Preview Lab → · Contrast checker → · Palette generator →

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