#3B51BB#3B51BB

#3B51BB is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.1% C 0.168 H 270.0°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#3B51BB
RGBrgb(59, 81, 187)
HSLhsl(230, 52%, 48%)
HSVhsv(230, 68%, 73%)
CMYKcmyk(68.4%, 56.7%, 0%, 26.7%)
CIE-LABlab(38.55, 27.10, -58.46)
CIE-LCHlch(38.55, 64.44, 294.87°)
OKLaboklab(48.06% 0.0001 -0.1683)
OKLCHoklch(48.06% 0.168 270)
XYZxyz(13.7126, 10.4012, 48.2890)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B51BB #BBA53B
analogous
#3B91BB #3B51BB #653BBB
triadic
#3B51BB #BB3B51 #51BB3B
tetradic
#3B51BB #BB3B91 #BBA53B #3BBB65
square
#3B51BB #BB3B91 #BBA53B #3BBB65
split-complementary
#3B51BB #BB653B #91BB3B
monochromatic
#1E295E #2C3D8C #3B51BB #6577CE #93A0DD

Accessibility & contrast

On white

6.82
#3B51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#3B51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3B51BB
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B51BB#FFFFFF#000000##FFFFFF
##3B51BB1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3b51bb;
/* rgb */ color: rgb(59, 81, 187);
/* oklch */ color: oklch(48.1% 0.168 270.0);
Tailwind
colors: {
  custom: {
    50: '#8081d0',
    500: '#3b51bb',
    950: '#000000',
  },
}
SCSS
$custom: #3b51bb;
$custom-light: #8081d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b51bb",
  "rgb": {
    "r": 59,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 229.688,
    "s": 52.033,
    "l": 48.235
  },
  "oklch": {
    "l": 0.48064,
    "c": 0.16832,
    "h": 270
  },
  "luminance": 0.10403
}

Semantic roles & 50–950 ramp

primary
#3B51BB
secondary
#C8BD8A
accent
#C34CDB
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3B51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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