#3940AF#3940AF

#3940AF is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.8% C 0.174 H 273.9°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#3940AF
RGBrgb(57, 64, 175)
HSLhsl(236, 51%, 45%)
HSVhsv(236, 67%, 69%)
CMYKcmyk(67.4%, 63.4%, 0%, 31.4%)
CIE-LABlab(33.20, 33.46, -60.09)
CIE-LCHlch(33.20, 68.78, 299.11°)
OKLaboklab(43.77% 0.0119 -0.1733)
OKLCHoklch(43.77% 0.174 273.9)
XYZxyz(11.2560, 7.6308, 41.4288)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940AF #AFA839
analogous
#397BAF #3940AF #6D39AF
triadic
#3940AF #AF3940 #40AF39
tetradic
#3940AF #AF397B #AFA839 #39AF6D
square
#3940AF #AF397B #AFA839 #39AF6D
split-complementary
#3940AF #AF6D39 #7BAF39
monochromatic
#1B1E53 #2A2F81 #3940AF #5B62CA #8A8ED9

Accessibility & contrast

On white

8.31
#3940AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3940AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940AF
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940AF#FFFFFF#000000##FFFFFF
##3940AF1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3940af;
/* rgb */ color: rgb(57, 64, 175);
/* oklch */ color: oklch(43.8% 0.174 273.9);
Tailwind
colors: {
  custom: {
    50: '#7e75c8',
    500: '#3940af',
    950: '#000000',
  },
}
SCSS
$custom: #3940af;
$custom-light: #7e75c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3940af",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 236.441,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43768,
    "c": 0.17375,
    "h": 273.9
  },
  "luminance": 0.07632
}

Semantic roles & 50–950 ramp

primary
#3940AF
secondary
#C3BF81
accent
#D24DDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3940AF

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

Preview Lab → · Contrast checker → · Palette generator →

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