#3F5EC3#3F5EC3

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

Color values

HEX#3F5EC3
RGBrgb(63, 94, 195)
HSLhsl(226, 52%, 51%)
HSVhsv(226, 68%, 76%)
CMYKcmyk(67.7%, 51.8%, 0%, 23.5%)
CIE-LABlab(42.76, 22.20, -56.30)
CIE-LCHlch(42.76, 60.52, 291.52°)
OKLaboklab(51.47% -0.0069 -0.1617)
OKLCHoklch(51.47% 0.162 267.6)
XYZxyz(15.8995, 13.0008, 53.2907)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5EC3 #C3A43F
analogous
#3FA0C3 #3F5EC3 #623FC3
triadic
#3F5EC3 #C33F5E #5EC33F
tetradic
#3F5EC3 #C33FA0 #C3A43F #3FC362
square
#3F5EC3 #C33FA0 #C3A43F #3FC362
split-complementary
#3F5EC3 #C3623F #A0C33F
monochromatic
#203167 #2F4796 #3F5EC3 #6E85D2 #9CACE0

Accessibility & contrast

On white

5.83
#3F5EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#3F5EC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F5EC3
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5EC3#FFFFFF#000000##FFFFFF
##3F5EC31.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6BC7
Deuteranopia (green-blind)
#005FC1
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3f5ec3;
/* rgb */ color: rgb(63, 94, 195);
/* oklch */ color: oklch(51.5% 0.162 267.6);
Tailwind
colors: {
  custom: {
    50: '#838bd6',
    500: '#3f5ec3',
    950: '#000000',
  },
}
SCSS
$custom: #3f5ec3;
$custom-light: #838bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5ec3",
  "rgb": {
    "r": 63,
    "g": 94,
    "b": 195
  },
  "hsl": {
    "h": 225.909,
    "s": 52.381,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51471,
    "c": 0.16183,
    "h": 267.6
  },
  "luminance": 0.13002
}

Semantic roles & 50–950 ramp

primary
#3F5EC3
secondary
#CCBE92
accent
#BA4CDC
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3F5EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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