#3F52B5#3F52B5

#3F52B5 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.0% C 0.158 H 271.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#3F52B5
RGBrgb(63, 82, 181)
HSLhsl(230, 48%, 48%)
HSVhsv(230, 65%, 71%)
CMYKcmyk(65.2%, 54.7%, 0%, 29%)
CIE-LABlab(38.60, 24.93, -54.86)
CIE-LCHlch(38.60, 60.26, 294.44°)
OKLaboklab(48.02% 0.003 -0.1576)
OKLCHoklch(48.02% 0.158 271.1)
XYZxyz(13.4049, 10.4263, 45.0132)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F52B5 #B5A23F
analogous
#3F8DB5 #3F52B5 #673FB5
triadic
#3F52B5 #B53F52 #52B53F
tetradic
#3F52B5 #B53F8D #B5A23F #3FB567
square
#3F52B5 #B53F8D #B5A23F #3FB567
split-complementary
#3F52B5 #B5673F #8DB53F
monochromatic
#1F295A #2F3D88 #3F52B5 #6777CA #94A0DA

Accessibility & contrast

On white

6.81
#3F52B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#3F52B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F52B5
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F52B5#FFFFFF#000000##FFFFFF
##3F52B51.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0660B8
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3f52b5;
/* rgb */ color: rgb(63, 82, 181);
/* oklch */ color: oklch(48.0% 0.158 271.1);
Tailwind
colors: {
  custom: {
    50: '#8182cc',
    500: '#3f52b5',
    950: '#000000',
  },
}
SCSS
$custom: #3f52b5;
$custom-light: #8182cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f52b5",
  "rgb": {
    "r": 63,
    "g": 82,
    "b": 181
  },
  "hsl": {
    "h": 230.339,
    "s": 48.361,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48017,
    "c": 0.15764,
    "h": 271.1
  },
  "luminance": 0.10428
}

Semantic roles & 50–950 ramp

primary
#3F52B5
secondary
#C5BC8A
accent
#C250D8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3F52B5

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

Preview Lab → · Contrast checker → · Palette generator →

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