#3F40AF#3F40AF

#3F40AF is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.172 H 276.3°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#3F40AF
RGBrgb(63, 64, 175)
HSLhsl(239, 47%, 47%)
HSVhsv(239, 64%, 69%)
CMYKcmyk(64%, 63.4%, 0%, 31.4%)
CIE-LABlab(33.60, 34.35, -59.43)
CIE-LCHlch(33.60, 68.64, 300.03°)
OKLaboklab(44.16% 0.019 -0.1712)
OKLCHoklch(44.16% 0.172 276.3)
XYZxyz(11.6186, 7.8177, 41.4458)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40AF #AFAE3F
analogous
#3F78AF #3F40AF #763FAF
triadic
#3F40AF #AF3F40 #40AF3F
tetradic
#3F40AF #AF3F78 #AFAE3F #3FAF76
square
#3F40AF #AF3F78 #AFAE3F #3FAF76
split-complementary
#3F40AF #AF763F #78AF3F
monochromatic
#1F1F55 #2F3082 #3F40AF #6465C7 #9192D7

Accessibility & contrast

On white

8.19
#3F40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3F40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40AF
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40AF#FFFFFF#000000##FFFFFF
##3F40AF1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3f40af;
/* rgb */ color: rgb(63, 64, 175);
/* oklch */ color: oklch(44.2% 0.172 276.3);
Tailwind
colors: {
  custom: {
    50: '#8175c8',
    500: '#3f40af',
    950: '#000000',
  },
}
SCSS
$custom: #3f40af;
$custom-light: #8175c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40af",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 239.464,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44164,
    "c": 0.17227,
    "h": 276.3
  },
  "luminance": 0.07819
}

Semantic roles & 50–950 ramp

primary
#3F40AF
secondary
#C3C287
accent
#D551D7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3F40AF

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

Preview Lab → · Contrast checker → · Palette generator →

#3F40AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva