#3940C9#3940C9

#3940C9 is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.1% C 0.207 H 272.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#3940C9
RGBrgb(57, 64, 201)
HSLhsl(237, 57%, 51%)
HSVhsv(237, 72%, 79%)
CMYKcmyk(71.6%, 68.2%, 0%, 21.2%)
CIE-LABlab(35.50, 42.44, -71.63)
CIE-LCHlch(35.50, 83.26, 300.65°)
OKLaboklab(46.15% 0.0096 -0.2071)
OKLCHoklch(46.15% 0.207 272.7)
XYZxyz(14.0598, 8.7523, 56.1954)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940C9 #C9C239
analogous
#3988C9 #3940C9 #7A39C9
triadic
#3940C9 #C93940 #40C939
tetradic
#3940C9 #C93988 #C9C239 #39C97A
square
#3940C9 #C93988 #C9C239 #39C97A
split-complementary
#3940C9 #C97A39 #88C939
monochromatic
#1D216B #2A309B #3940C9 #696ED6 #999DE3

Accessibility & contrast

On white

7.63
#3940C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#3940C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940C9
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940C9#FFFFFF#000000##FFFFFF
##3940C91.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#004DC6
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3940c9;
/* rgb */ color: rgb(57, 64, 201);
/* oklch */ color: oklch(46.1% 0.207 272.7);
Tailwind
colors: {
  custom: {
    50: '#8475db',
    500: '#3940c9',
    950: '#000000',
  },
}
SCSS
$custom: #3940c9;
$custom-light: #8475db;
$custom-dark: #000000;
JSON
{
  "hex": "#3940c9",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 237.083,
    "s": 57.143,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46149,
    "c": 0.20733,
    "h": 272.7
  },
  "luminance": 0.08754
}

Semantic roles & 50–950 ramp

primary
#3940C9
secondary
#CFCC8F
accent
#D947E0
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3940C9

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

Preview Lab → · Contrast checker → · Palette generator →

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