#3940A0#3940A0

#3940A0 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.153 H 274.6°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#3940A0
RGBrgb(57, 64, 160)
HSLhsl(236, 47%, 43%)
HSVhsv(236, 64%, 63%)
CMYKcmyk(64.4%, 60%, 0%, 37.3%)
CIE-LABlab(31.97, 28.18, -53.10)
CIE-LCHlch(31.97, 60.11, 297.95°)
OKLaboklab(42.48% 0.0124 -0.1528)
OKLCHoklch(42.48% 0.153 274.6)
XYZxyz(9.8638, 7.0739, 34.0965)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940A0 #A09939
analogous
#3974A0 #3940A0 #6539A0
triadic
#3940A0 #A03940 #40A039
tetradic
#3940A0 #A03974 #A09939 #39A065
square
#3940A0 #A03974 #A09939 #39A065
split-complementary
#3940A0 #A06539 #74A039
monochromatic
#191C46 #292E73 #3940A0 #545CC2 #8187D2

Accessibility & contrast

On white

8.70
#3940A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3940A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940A0
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940A0#FFFFFF#000000##FFFFFF
##3940A01.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3940a0;
/* rgb */ color: rgb(57, 64, 160);
/* oklch */ color: oklch(42.5% 0.153 274.6);
Tailwind
colors: {
  custom: {
    50: '#7b74bd',
    500: '#3940a0',
    950: '#000000',
  },
}
SCSS
$custom: #3940a0;
$custom-light: #7b74bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3940a0",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 235.922,
    "s": 47.465,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4248,
    "c": 0.1533,
    "h": 274.6
  },
  "luminance": 0.07075
}

Semantic roles & 50–950 ramp

primary
#3940A0
secondary
#BCB779
accent
#CE51D7
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3940A0

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

Preview Lab → · Contrast checker → · Palette generator →

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