#3940B3#3940B3

#3940B3 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.179 H 273.7°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#3940B3
RGBrgb(57, 64, 179)
HSLhsl(237, 52%, 46%)
HSVhsv(237, 68%, 70%)
CMYKcmyk(68.2%, 64.2%, 0%, 29.8%)
CIE-LABlab(33.54, 34.86, -61.92)
CIE-LCHlch(33.54, 71.06, 299.38°)
OKLaboklab(44.12% 0.0116 -0.1787)
OKLCHoklch(44.12% 0.179 273.7)
XYZxyz(11.6547, 7.7902, 43.5286)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940B3 #B3AC39
analogous
#397DB3 #3940B3 #6F39B3
triadic
#3940B3 #B33940 #40B339
tetradic
#3940B3 #B3397D #B3AC39 #39B36F
square
#3940B3 #B3397D #B3AC39 #39B36F
split-complementary
#3940B3 #B36F39 #7DB339
monochromatic
#1B1F56 #2A2F85 #3940B3 #5E64CC #8C91DA

Accessibility & contrast

On white

8.21
#3940B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3940B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940B3
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940B3#FFFFFF#000000##FFFFFF
##3940B31.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0049B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3940b3;
/* rgb */ color: rgb(57, 64, 179);
/* oklch */ color: oklch(44.1% 0.179 273.7);
Tailwind
colors: {
  custom: {
    50: '#7f75cb',
    500: '#3940b3',
    950: '#000000',
  },
}
SCSS
$custom: #3940b3;
$custom-light: #7f75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3940b3",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 236.557,
    "s": 51.695,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44122,
    "c": 0.17906,
    "h": 273.7
  },
  "luminance": 0.07791
}

Semantic roles & 50–950 ramp

primary
#3940B3
secondary
#C5C183
accent
#D34DDB
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3940B3

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

Preview Lab → · Contrast checker → · Palette generator →

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