#3940CA#3940CA

#3940CA is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.2% C 0.209 H 272.6°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#3940CA
RGBrgb(57, 64, 202)
HSLhsl(237, 58%, 51%)
HSVhsv(237, 72%, 79%)
CMYKcmyk(71.8%, 68.3%, 0%, 20.8%)
CIE-LABlab(35.60, 42.78, -72.06)
CIE-LCHlch(35.60, 83.80, 300.70°)
OKLaboklab(46.24% 0.0095 -0.2084)
OKLCHoklch(46.24% 0.209 272.6)
XYZxyz(14.1778, 8.7995, 56.8169)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940CA #CAC339
analogous
#3989CA #3940CA #7A39CA
triadic
#3940CA #CA3940 #40CA39
tetradic
#3940CA #CA3989 #CAC339 #39CA7A
square
#3940CA #CA3989 #CAC339 #39CA7A
split-complementary
#3940CA #CA7A39 #89CA39
monochromatic
#1D216C #2A2F9C #3940CA #696FD7 #9A9DE4

Accessibility & contrast

On white

7.61
#3940CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#3940CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940CA
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940CA#FFFFFF#000000##FFFFFF
##3940CA1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#004DC7
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3940ca;
/* rgb */ color: rgb(57, 64, 202);
/* oklch */ color: oklch(46.2% 0.209 272.6);
Tailwind
colors: {
  custom: {
    50: '#8475db',
    500: '#3940ca',
    950: '#000000',
  },
}
SCSS
$custom: #3940ca;
$custom-light: #8475db;
$custom-dark: #000000;
JSON
{
  "hex": "#3940ca",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 237.103,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46244,
    "c": 0.20859,
    "h": 272.6
  },
  "luminance": 0.08801
}

Semantic roles & 50–950 ramp

primary
#3940CA
secondary
#D0CC8F
accent
#DA47E1
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3940CA

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

Preview Lab → · Contrast checker → · Palette generator →

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