#3940C3#3940C3

#3940C3 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.6% C 0.200 H 272.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#3940C3
RGBrgb(57, 64, 195)
HSLhsl(237, 55%, 49%)
HSVhsv(237, 71%, 76%)
CMYKcmyk(70.8%, 67.2%, 0%, 23.5%)
CIE-LABlab(34.95, 40.39, -69.03)
CIE-LCHlch(34.95, 79.98, 300.33°)
OKLaboklab(45.59% 0.0103 -0.1995)
OKLCHoklch(45.59% 0.2 272.9)
XYZxyz(13.3678, 8.4755, 52.5506)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940C3 #C3BC39
analogous
#3985C3 #3940C3 #7739C3
triadic
#3940C3 #C33940 #40C339
tetradic
#3940C3 #C33985 #C3BC39 #39C377
square
#3940C3 #C33985 #C3BC39 #39C377
split-complementary
#3940C3 #C37739 #85C339
monochromatic
#1D2164 #2B3094 #3940C3 #676CD2 #969AE0

Accessibility & contrast

On white

7.79
#3940C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3940C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940C3
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940C3#FFFFFF#000000##FFFFFF
##3940C31.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#004CC1
Tritanopia (blue-blind)
#00637C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3940c3;
/* rgb */ color: rgb(57, 64, 195);
/* oklch */ color: oklch(45.6% 0.200 272.9);
Tailwind
colors: {
  custom: {
    50: '#8275d6',
    500: '#3940c3',
    950: '#000000',
  },
}
SCSS
$custom: #3940c3;
$custom-light: #8275d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3940c3",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 236.957,
    "s": 54.762,
    "l": 49.412
  },
  "oklch": {
    "l": 0.45585,
    "c": 0.19977,
    "h": 272.9
  },
  "luminance": 0.08477
}

Semantic roles & 50–950 ramp

primary
#3940C3
secondary
#CCC98C
accent
#D74ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3940C3

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

Preview Lab → · Contrast checker → · Palette generator →

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