#3940B5#3940B5

#3940B5 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.3% C 0.182 H 273.6°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#3940B5
RGBrgb(57, 64, 181)
HSLhsl(237, 52%, 47%)
HSVhsv(237, 69%, 71%)
CMYKcmyk(68.5%, 64.6%, 0%, 29%)
CIE-LABlab(33.71, 35.56, -62.82)
CIE-LCHlch(33.71, 72.18, 299.51°)
OKLaboklab(44.3% 0.0115 -0.1813)
OKLCHoklch(44.3% 0.182 273.6)
XYZxyz(11.8584, 7.8717, 44.6016)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940B5 #B5AE39
analogous
#397EB5 #3940B5 #7039B5
triadic
#3940B5 #B53940 #40B539
tetradic
#3940B5 #B5397E #B5AE39 #39B570
square
#3940B5 #B5397E #B5AE39 #39B570
split-complementary
#3940B5 #B57039 #7EB539
monochromatic
#1C1F58 #2A3086 #3940B5 #5F65CD #8D92DB

Accessibility & contrast

On white

8.16
#3940B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3940B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3940B5#FFFFFF#000000##FFFFFF
##3940B51.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3940b5;
/* rgb */ color: rgb(57, 64, 181);
/* oklch */ color: oklch(44.3% 0.182 273.6);
Tailwind
colors: {
  custom: {
    50: '#7f75cc',
    500: '#3940b5',
    950: '#000000',
  },
}
SCSS
$custom: #3940b5;
$custom-light: #7f75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3940b5",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 236.613,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44302,
    "c": 0.18169,
    "h": 273.6
  },
  "luminance": 0.07873
}

Semantic roles & 50–950 ramp

primary
#3940B5
secondary
#C6C284
accent
#D34CDC
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3940B5

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

Preview Lab → · Contrast checker → · Palette generator →

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