#3F40BA#3F40BA

#3F40BA is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.1% C 0.187 H 275.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#3F40BA
RGBrgb(63, 64, 186)
HSLhsl(240, 49%, 49%)
HSVhsv(240, 66%, 73%)
CMYKcmyk(66.1%, 65.6%, 0%, 27.1%)
CIE-LABlab(34.53, 38.09, -64.42)
CIE-LCHlch(34.53, 74.84, 300.60°)
OKLaboklab(45.14% 0.0181 -0.1859)
OKLCHoklch(45.14% 0.187 275.6)
XYZxyz(12.7433, 8.2676, 47.3691)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40BA #BAB93F
analogous
#3F7EBA #3F40BA #7C3FBA
triadic
#3F40BA #BA3F40 #40BA3F
tetradic
#3F40BA #BA3F7E #BAB93F #3FBA7C
square
#3F40BA #BA3F7E #BAB93F #3FBA7C
split-complementary
#3F40BA #BA7C3F #7EBA3F
monochromatic
#20215F #30308C #3F40BA #6A6BCC #9798DC

Accessibility & contrast

On white

7.91
#3F40BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3F40BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40BA
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40BA#FFFFFF#000000##FFFFFF
##3F40BA1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3f40ba;
/* rgb */ color: rgb(63, 64, 186);
/* oklch */ color: oklch(45.1% 0.187 275.6);
Tailwind
colors: {
  custom: {
    50: '#8375d0',
    500: '#3f40ba',
    950: '#000000',
  },
}
SCSS
$custom: #3f40ba;
$custom-light: #8375d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40ba",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 239.512,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45135,
    "c": 0.18674,
    "h": 275.6
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

primary
#3F40BA
secondary
#C8C78D
accent
#D84FD9
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3F40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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