#3940BE#3940BE

#3940BE is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.1% C 0.193 H 273.2°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#3940BE
RGBrgb(57, 64, 190)
HSLhsl(237, 54%, 48%)
HSVhsv(237, 70%, 75%)
CMYKcmyk(70%, 66.3%, 0%, 25.5%)
CIE-LABlab(34.50, 38.67, -66.83)
CIE-LCHlch(34.50, 77.22, 300.06°)
OKLaboklab(45.12% 0.0107 -0.1931)
OKLCHoklch(45.12% 0.193 273.2)
XYZxyz(12.8119, 8.2531, 49.6230)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940BE #BEB739
analogous
#3982BE #3940BE #7439BE
triadic
#3940BE #BE3940 #40BE39
tetradic
#3940BE #BE3982 #BEB739 #39BE74
square
#3940BE #BE3982 #BEB739 #39BE74
split-complementary
#3940BE #BE7439 #82BE39
monochromatic
#1D2060 #2B308F #3940BE #6469D0 #9397DF

Accessibility & contrast

On white

7.92
#3940BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3940BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940BE
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940BE#FFFFFF#000000##FFFFFF
##3940BE1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#004BBC
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3940be;
/* rgb */ color: rgb(57, 64, 190);
/* oklch */ color: oklch(45.1% 0.193 273.2);
Tailwind
colors: {
  custom: {
    50: '#8175d3',
    500: '#3940be',
    950: '#000000',
  },
}
SCSS
$custom: #3940be;
$custom-light: #8175d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3940be",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 236.842,
    "s": 53.846,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45121,
    "c": 0.19339,
    "h": 273.2
  },
  "luminance": 0.08254
}

Semantic roles & 50–950 ramp

primary
#3940BE
secondary
#CAC689
accent
#D64BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3940BE

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

Preview Lab → · Contrast checker → · Palette generator →

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