#3940B0#3940B0

#3940B0 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.175 H 273.9°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#3940B0
RGBrgb(57, 64, 176)
HSLhsl(236, 51%, 46%)
HSVhsv(236, 68%, 69%)
CMYKcmyk(67.6%, 63.6%, 0%, 31%)
CIE-LABlab(33.29, 33.81, -60.55)
CIE-LCHlch(33.29, 69.35, 299.18°)
OKLaboklab(43.86% 0.0118 -0.1747)
OKLCHoklch(43.86% 0.175 273.9)
XYZxyz(11.3546, 7.6702, 41.9480)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940B0 #B0A939
analogous
#397BB0 #3940B0 #6E39B0
triadic
#3940B0 #B03940 #40B039
tetradic
#3940B0 #B0397B #B0A939 #39B06E
square
#3940B0 #B0397B #B0A939 #39B06E
split-complementary
#3940B0 #B06E39 #7BB039
monochromatic
#1B1E54 #2A2F82 #3940B0 #5C62CA #8A8FD9

Accessibility & contrast

On white

8.29
#3940B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3940B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940B0
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940B0#FFFFFF#000000##FFFFFF
##3940B01.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3940b0;
/* rgb */ color: rgb(57, 64, 176);
/* oklch */ color: oklch(43.9% 0.175 273.9);
Tailwind
colors: {
  custom: {
    50: '#7e75c9',
    500: '#3940b0',
    950: '#000000',
  },
}
SCSS
$custom: #3940b0;
$custom-light: #7e75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3940b0",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 236.471,
    "s": 51.073,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43856,
    "c": 0.17508,
    "h": 273.9
  },
  "luminance": 0.07671
}

Semantic roles & 50–950 ramp

primary
#3940B0
secondary
#C4C081
accent
#D24DDB
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3940B0

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

Preview Lab → · Contrast checker → · Palette generator →

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