#3F5BC8#3F5BC8

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

Color values

HEX#3F5BC8
RGBrgb(63, 91, 200)
HSLhsl(228, 55%, 52%)
HSVhsv(228, 69%, 78%)
CMYKcmyk(68.5%, 54.5%, 0%, 21.6%)
CIE-LABlab(42.32, 25.92, -59.91)
CIE-LCHlch(42.32, 65.28, 293.40°)
OKLaboklab(51.25% -0.0039 -0.1724)
OKLCHoklch(51.25% 0.172 268.7)
XYZxyz(16.2127, 12.7075, 56.2308)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5BC8 #C8AC3F
analogous
#3FA0C8 #3F5BC8 #683FC8
triadic
#3F5BC8 #C83F5B #5BC83F
tetradic
#3F5BC8 #C83FA0 #C8AC3F #3FC868
square
#3F5BC8 #C83FA0 #C8AC3F #3FC868
split-complementary
#3F5BC8 #C8683F #A0C83F
monochromatic
#1F2F6D #2D449D #3F5BC8 #6F84D6 #9EACE3

Accessibility & contrast

On white

5.93
#3F5BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#3F5BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F5BC8
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5BC8#FFFFFF#000000##FFFFFF
##3F5BC81.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3f5bc8;
/* rgb */ color: rgb(63, 91, 200);
/* oklch */ color: oklch(51.2% 0.172 268.7);
Tailwind
colors: {
  custom: {
    50: '#8489d9',
    500: '#3f5bc8',
    950: '#000000',
  },
}
SCSS
$custom: #3f5bc8;
$custom-light: #8489d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5bc8",
  "rgb": {
    "r": 63,
    "g": 91,
    "b": 200
  },
  "hsl": {
    "h": 227.737,
    "s": 55.466,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51246,
    "c": 0.1724,
    "h": 268.7
  },
  "luminance": 0.12709
}

Semantic roles & 50–950 ramp

primary
#3F5BC8
secondary
#D0C393
accent
#C049DF
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3F5BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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