#3940B9#3940B9

#3940B9 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.7% C 0.187 H 273.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#3940B9
RGBrgb(57, 64, 185)
HSLhsl(237, 53%, 47%)
HSVhsv(237, 69%, 73%)
CMYKcmyk(69.2%, 65.4%, 0%, 27.5%)
CIE-LABlab(34.06, 36.95, -64.61)
CIE-LCHlch(34.06, 74.43, 299.76°)
OKLaboklab(44.66% 0.0112 -0.1866)
OKLCHoklch(44.66% 0.187 273.4)
XYZxyz(12.2748, 8.0383, 46.7942)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940B9 #B9B239
analogous
#3980B9 #3940B9 #7239B9
triadic
#3940B9 #B93940 #40B939
tetradic
#3940B9 #B93980 #B9B239 #39B972
square
#3940B9 #B93980 #B9B239 #39B972
split-complementary
#3940B9 #B97239 #80B939
monochromatic
#1C205B #2B308A #3940B9 #6167CE #9094DD

Accessibility & contrast

On white

8.05
#3940B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#3940B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3940B9#FFFFFF#000000##FFFFFF
##3940B91.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#004AB7
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3940b9;
/* rgb */ color: rgb(57, 64, 185);
/* oklch */ color: oklch(44.7% 0.187 273.4);
Tailwind
colors: {
  custom: {
    50: '#8075cf',
    500: '#3940b9',
    950: '#000000',
  },
}
SCSS
$custom: #3940b9;
$custom-light: #8075cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3940b9",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 236.719,
    "s": 52.893,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44663,
    "c": 0.18692,
    "h": 273.4
  },
  "luminance": 0.08039
}

Semantic roles & 50–950 ramp

primary
#3940B9
secondary
#C8C486
accent
#D44BDC
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3940B9

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

Preview Lab → · Contrast checker → · Palette generator →

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