#3F40AB#3F40AB

#3F40AB is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.8% C 0.167 H 276.6°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#3F40AB
RGBrgb(63, 64, 171)
HSLhsl(239, 46%, 46%)
HSVhsv(239, 63%, 67%)
CMYKcmyk(63.2%, 62.6%, 0%, 32.9%)
CIE-LABlab(33.27, 32.99, -57.58)
CIE-LCHlch(33.27, 66.36, 299.81°)
OKLaboklab(43.82% 0.0192 -0.1658)
OKLCHoklch(43.82% 0.167 276.6)
XYZxyz(11.2316, 7.6629, 39.4074)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40AB #ABAA3F
analogous
#3F76AB #3F40AB #743FAB
triadic
#3F40AB #AB3F40 #40AB3F
tetradic
#3F40AB #AB3F76 #ABAA3F #3FAB74
square
#3F40AB #AB3F76 #ABAA3F #3FAB74
split-complementary
#3F40AB #AB743F #76AB3F
monochromatic
#1E1F52 #2F2F7E #3F40AB #6263C5 #8F8FD6

Accessibility & contrast

On white

8.29
#3F40AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3F40AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40AB
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40AB#FFFFFF#000000##FFFFFF
##3F40AB1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3f40ab;
/* rgb */ color: rgb(63, 64, 171);
/* oklch */ color: oklch(43.8% 0.167 276.6);
Tailwind
colors: {
  custom: {
    50: '#8075c5',
    500: '#3f40ab',
    950: '#000000',
  },
}
SCSS
$custom: #3f40ab;
$custom-light: #8075c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40ab",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 239.444,
    "s": 46.154,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4382,
    "c": 0.1669,
    "h": 276.6
  },
  "luminance": 0.07664
}

Semantic roles & 50–950 ramp

primary
#3F40AB
secondary
#C1C085
accent
#D552D6
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3F40AB

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

Preview Lab → · Contrast checker → · Palette generator →

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