#3F5EC6#3F5EC6

#3F5EC6 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.7% C 0.166 H 267.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#3F5EC6
RGBrgb(63, 94, 198)
HSLhsl(226, 54%, 51%)
HSVhsv(226, 68%, 78%)
CMYKcmyk(68.2%, 52.5%, 0%, 22.4%)
CIE-LABlab(42.97, 23.28, -57.70)
CIE-LCHlch(42.97, 62.22, 291.97°)
OKLaboklab(51.69% -0.0066 -0.1658)
OKLCHoklch(51.69% 0.166 267.7)
XYZxyz(16.2421, 13.1378, 55.0950)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5EC6 #C6A73F
analogous
#3FA1C6 #3F5EC6 #633FC6
triadic
#3F5EC6 #C63F5E #5EC63F
tetradic
#3F5EC6 #C63FA1 #C6A73F #3FC663
square
#3F5EC6 #C63FA1 #C6A73F #3FC663
split-complementary
#3F5EC6 #C6633F #A1C63F
monochromatic
#20316B #2E479A #3F5EC6 #6E86D4 #9DADE2

Accessibility & contrast

On white

5.79
#3F5EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#3F5EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F5EC6
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5EC6#FFFFFF#000000##FFFFFF
##3F5EC61.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196CCA
Deuteranopia (green-blind)
#0060C4
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3f5ec6;
/* rgb */ color: rgb(63, 94, 198);
/* oklch */ color: oklch(51.7% 0.166 267.7);
Tailwind
colors: {
  custom: {
    50: '#838bd8',
    500: '#3f5ec6',
    950: '#000000',
  },
}
SCSS
$custom: #3f5ec6;
$custom-light: #838bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5ec6",
  "rgb": {
    "r": 63,
    "g": 94,
    "b": 198
  },
  "hsl": {
    "h": 226.222,
    "s": 54.217,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51692,
    "c": 0.16594,
    "h": 267.7
  },
  "luminance": 0.13139
}

Semantic roles & 50–950 ramp

primary
#3F5EC6
secondary
#CEC193
accent
#BC4ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3F5EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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