#3F5BC5#3F5BC5

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

Color values

HEX#3F5BC5
RGBrgb(63, 91, 197)
HSLhsl(227, 54%, 51%)
HSVhsv(227, 68%, 77%)
CMYKcmyk(68%, 53.8%, 0%, 22.7%)
CIE-LABlab(42.11, 24.85, -58.52)
CIE-LCHlch(42.11, 63.58, 293.00°)
OKLaboklab(51.02% -0.0041 -0.1683)
OKLCHoklch(51.02% 0.168 268.6)
XYZxyz(15.8656, 12.5686, 54.4024)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5BC5 #C5A93F
analogous
#3F9EC5 #3F5BC5 #663FC5
triadic
#3F5BC5 #C53F5B #5BC53F
tetradic
#3F5BC5 #C53F9E #C5A93F #3FC566
square
#3F5BC5 #C53F9E #C5A93F #3FC566
split-complementary
#3F5BC5 #C5663F #9EC53F
monochromatic
#202F6A #2E4499 #3F5BC5 #6E83D3 #9DABE1

Accessibility & contrast

On white

5.98
#3F5BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#3F5BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F5BC5
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5BC5#FFFFFF#000000##FFFFFF
##3F5BC51.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6AC9
Deuteranopia (green-blind)
#005EC3
Tritanopia (blue-blind)
#007487
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3f5bc5;
/* rgb */ color: rgb(63, 91, 197);
/* oklch */ color: oklch(51.0% 0.168 268.6);
Tailwind
colors: {
  custom: {
    50: '#8389d7',
    500: '#3f5bc5',
    950: '#000000',
  },
}
SCSS
$custom: #3f5bc5;
$custom-light: #8389d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5bc5",
  "rgb": {
    "r": 63,
    "g": 91,
    "b": 197
  },
  "hsl": {
    "h": 227.463,
    "s": 53.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51018,
    "c": 0.16832,
    "h": 268.6
  },
  "luminance": 0.1257
}

Semantic roles & 50–950 ramp

primary
#3F5BC5
secondary
#CEC192
accent
#BE4BDD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3F5BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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