#3F5BC7#3F5BC7

#3F5BC7 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.2% C 0.171 H 268.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#3F5BC7
RGBrgb(63, 91, 199)
HSLhsl(228, 55%, 51%)
HSVhsv(228, 68%, 78%)
CMYKcmyk(68.3%, 54.3%, 0%, 22%)
CIE-LABlab(42.25, 25.56, -59.45)
CIE-LCHlch(42.25, 64.71, 293.27°)
OKLaboklab(51.17% -0.0039 -0.171)
OKLCHoklch(51.17% 0.171 268.7)
XYZxyz(16.0962, 12.6609, 55.6173)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5BC7 #C7AB3F
analogous
#3F9FC7 #3F5BC7 #673FC7
triadic
#3F5BC7 #C73F5B #5BC73F
tetradic
#3F5BC7 #C73F9F #C7AB3F #3FC767
square
#3F5BC7 #C73F9F #C7AB3F #3FC767
split-complementary
#3F5BC7 #C7673F #9FC73F
monochromatic
#202F6C #2D449B #3F5BC7 #6E83D5 #9EACE3

Accessibility & contrast

On white

5.94
#3F5BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#3F5BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F5BC7
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5BC7#FFFFFF#000000##FFFFFF
##3F5BC71.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#026ACB
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3f5bc7;
/* rgb */ color: rgb(63, 91, 199);
/* oklch */ color: oklch(51.2% 0.171 268.7);
Tailwind
colors: {
  custom: {
    50: '#8489d9',
    500: '#3f5bc7',
    950: '#000000',
  },
}
SCSS
$custom: #3f5bc7;
$custom-light: #8489d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5bc7",
  "rgb": {
    "r": 63,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 227.647,
    "s": 54.839,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5117,
    "c": 0.17105,
    "h": 268.7
  },
  "luminance": 0.12662
}

Semantic roles & 50–950 ramp

primary
#3F5BC7
secondary
#CFC393
accent
#C04ADE
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3F5BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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