#3F40B2#3F40B2

#3F40B2 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.176 H 276.1°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#3F40B2
RGBrgb(63, 64, 178)
HSLhsl(239, 48%, 47%)
HSVhsv(239, 65%, 70%)
CMYKcmyk(64.6%, 64%, 0%, 30.2%)
CIE-LABlab(33.85, 35.37, -60.80)
CIE-LCHlch(33.85, 70.34, 300.19°)
OKLaboklab(44.43% 0.0188 -0.1752)
OKLCHoklch(44.43% 0.176 276.1)
XYZxyz(11.9166, 7.9369, 43.0148)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40B2 #B2B13F
analogous
#3F7AB2 #3F40B2 #773FB2
triadic
#3F40B2 #B23F40 #40B23F
tetradic
#3F40B2 #B23F7A #B2B13F #3FB277
square
#3F40B2 #B23F7A #B2B13F #3FB277
split-complementary
#3F40B2 #B2773F #7AB23F
monochromatic
#1F1F58 #2F3085 #3F40B2 #6666C9 #9393D9

Accessibility & contrast

On white

8.12
#3F40B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#3F40B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40B2
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40B2#FFFFFF#000000##FFFFFF
##3F40B21.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3f40b2;
/* rgb */ color: rgb(63, 64, 178);
/* oklch */ color: oklch(44.4% 0.176 276.1);
Tailwind
colors: {
  custom: {
    50: '#8275ca',
    500: '#3f40b2',
    950: '#000000',
  },
}
SCSS
$custom: #3f40b2;
$custom-light: #8275ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40b2",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 239.478,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44425,
    "c": 0.17625,
    "h": 276.1
  },
  "luminance": 0.07938
}

Semantic roles & 50–950 ramp

primary
#3F40B2
secondary
#C4C389
accent
#D650D7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #3F40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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