#3B51BF#3B51BF

#3B51BF is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.4% C 0.174 H 270.1°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#3B51BF
RGBrgb(59, 81, 191)
HSLhsl(230, 53%, 49%)
HSVhsv(230, 69%, 75%)
CMYKcmyk(69.1%, 57.6%, 0%, 25.1%)
CIE-LABlab(38.86, 28.53, -60.31)
CIE-LCHlch(38.86, 66.72, 295.32°)
OKLaboklab(48.38% 0.0002 -0.1738)
OKLCHoklch(48.38% 0.174 270.1)
XYZxyz(14.1468, 10.5749, 50.5757)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B51BF #BFA93B
analogous
#3B93BF #3B51BF #673BBF
triadic
#3B51BF #BF3B51 #51BF3B
tetradic
#3B51BF #BF3B93 #BFA93B #3BBF67
square
#3B51BF #BF3B93 #BFA93B #3BBF67
split-complementary
#3B51BF #BF673B #93BF3B
monochromatic
#1E2961 #2D3D90 #3B51BF #6779D0 #96A2DF

Accessibility & contrast

On white

6.74
#3B51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#3B51BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3B51BF
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B51BF#FFFFFF#000000##FFFFFF
##3B51BF1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#0056BD
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3b51bf;
/* rgb */ color: rgb(59, 81, 191);
/* oklch */ color: oklch(48.4% 0.174 270.1);
Tailwind
colors: {
  custom: {
    50: '#8181d3',
    500: '#3b51bf',
    950: '#000000',
  },
}
SCSS
$custom: #3b51bf;
$custom-light: #8181d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b51bf",
  "rgb": {
    "r": 59,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 230,
    "s": 52.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48384,
    "c": 0.17376,
    "h": 270.1
  },
  "luminance": 0.10576
}

Semantic roles & 50–950 ramp

primary
#3B51BF
secondary
#CAC08C
accent
#C44CDC
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3B51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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