#3F5EC4#3F5EC4

#3F5EC4 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.5% C 0.163 H 267.6°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#3F5EC4
RGBrgb(63, 94, 196)
HSLhsl(226, 53%, 51%)
HSVhsv(226, 68%, 77%)
CMYKcmyk(67.9%, 52%, 0%, 23.1%)
CIE-LABlab(42.83, 22.56, -56.76)
CIE-LCHlch(42.83, 61.08, 291.68°)
OKLaboklab(51.54% -0.0068 -0.1631)
OKLCHoklch(51.54% 0.163 267.6)
XYZxyz(16.0130, 13.0461, 53.8881)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5EC4 #C4A53F
analogous
#3FA0C4 #3F5EC4 #623FC4
triadic
#3F5EC4 #C43F5E #5EC43F
tetradic
#3F5EC4 #C43FA0 #C4A53F #3FC462
square
#3F5EC4 #C43FA0 #C4A53F #3FC462
split-complementary
#3F5EC4 #C4623F #A0C43F
monochromatic
#203168 #2E4797 #3F5EC4 #6E85D2 #9DADE1

Accessibility & contrast

On white

5.82
#3F5EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#3F5EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F5EC4
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5EC4#FFFFFF#000000##FFFFFF
##3F5EC41.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6BC8
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3f5ec4;
/* rgb */ color: rgb(63, 94, 196);
/* oklch */ color: oklch(51.5% 0.163 267.6);
Tailwind
colors: {
  custom: {
    50: '#838bd7',
    500: '#3f5ec4',
    950: '#000000',
  },
}
SCSS
$custom: #3f5ec4;
$custom-light: #838bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5ec4",
  "rgb": {
    "r": 63,
    "g": 94,
    "b": 196
  },
  "hsl": {
    "h": 226.015,
    "s": 52.988,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51545,
    "c": 0.1632,
    "h": 267.6
  },
  "luminance": 0.13048
}

Semantic roles & 50–950 ramp

primary
#3F5EC4
secondary
#CDBF92
accent
#BB4BDC
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3F5EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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