#3F5BC6#3F5BC6

#3F5BC6 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.1% C 0.170 H 268.6°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#3F5BC6
RGBrgb(63, 91, 198)
HSLhsl(228, 54%, 51%)
HSVhsv(228, 68%, 78%)
CMYKcmyk(68.2%, 54%, 0%, 22.4%)
CIE-LABlab(42.18, 25.20, -58.98)
CIE-LCHlch(42.18, 64.14, 293.14°)
OKLaboklab(51.09% -0.004 -0.1696)
OKLCHoklch(51.09% 0.17 268.6)
XYZxyz(15.9805, 12.6146, 55.0078)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5BC6 #C6AA3F
analogous
#3F9EC6 #3F5BC6 #663FC6
triadic
#3F5BC6 #C63F5B #5BC63F
tetradic
#3F5BC6 #C63F9E #C6AA3F #3FC666
square
#3F5BC6 #C63F9E #C6AA3F #3FC666
split-complementary
#3F5BC6 #C6663F #9EC63F
monochromatic
#202F6B #2E449A #3F5BC6 #6E83D4 #9DACE2

Accessibility & contrast

On white

5.96
#3F5BC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#3F5BC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F5BC6
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5BC6#FFFFFF#000000##FFFFFF
##3F5BC61.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076ACA
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#007587
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3f5bc6;
/* rgb */ color: rgb(63, 91, 198);
/* oklch */ color: oklch(51.1% 0.170 268.6);
Tailwind
colors: {
  custom: {
    50: '#8489d8',
    500: '#3f5bc6',
    950: '#000000',
  },
}
SCSS
$custom: #3f5bc6;
$custom-light: #8489d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5bc6",
  "rgb": {
    "r": 63,
    "g": 91,
    "b": 198
  },
  "hsl": {
    "h": 227.556,
    "s": 54.217,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51094,
    "c": 0.16968,
    "h": 268.6
  },
  "luminance": 0.12616
}

Semantic roles & 50–950 ramp

primary
#3F5BC6
secondary
#CEC293
accent
#BF4ADE
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3F5BC6

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

Preview Lab → · Contrast checker → · Palette generator →

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