#3F5EC5#3F5EC5

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

Color values

HEX#3F5EC5
RGBrgb(63, 94, 197)
HSLhsl(226, 54%, 51%)
HSVhsv(226, 68%, 77%)
CMYKcmyk(68%, 52.3%, 0%, 22.7%)
CIE-LABlab(42.90, 22.92, -57.23)
CIE-LCHlch(42.90, 61.65, 291.83°)
OKLaboklab(51.62% -0.0067 -0.1644)
OKLCHoklch(51.62% 0.165 267.7)
XYZxyz(16.1272, 13.0918, 54.4896)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5EC5 #C5A63F
analogous
#3FA1C5 #3F5EC5 #633FC5
triadic
#3F5EC5 #C53F5E #5EC53F
tetradic
#3F5EC5 #C53FA1 #C5A63F #3FC563
square
#3F5EC5 #C53FA1 #C5A63F #3FC563
split-complementary
#3F5EC5 #C5633F #A1C53F
monochromatic
#20316A #2E4799 #3F5EC5 #6E85D3 #9DADE1

Accessibility & contrast

On white

5.80
#3F5EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#3F5EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F5EC5
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5EC5#FFFFFF#000000##FFFFFF
##3F5EC51.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f5ec5;
/* rgb */ color: rgb(63, 94, 197);
/* oklch */ color: oklch(51.6% 0.165 267.7);
Tailwind
colors: {
  custom: {
    50: '#838bd7',
    500: '#3f5ec5',
    950: '#000000',
  },
}
SCSS
$custom: #3f5ec5;
$custom-light: #838bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5ec5",
  "rgb": {
    "r": 63,
    "g": 94,
    "b": 197
  },
  "hsl": {
    "h": 226.119,
    "s": 53.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51618,
    "c": 0.16458,
    "h": 267.7
  },
  "luminance": 0.13093
}

Semantic roles & 50–950 ramp

primary
#3F5EC5
secondary
#CEC092
accent
#BB4BDD
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3F5EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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