#3D51BB#3D51BB

#3D51BB is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.168 H 270.7°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#3D51BB
RGBrgb(61, 81, 187)
HSLhsl(230, 51%, 49%)
HSVhsv(230, 67%, 73%)
CMYKcmyk(67.4%, 56.7%, 0%, 26.7%)
CIE-LABlab(38.66, 27.40, -58.28)
CIE-LCHlch(38.66, 64.40, 295.18°)
OKLaboklab(48.17% 0.0021 -0.1677)
OKLCHoklch(48.17% 0.168 270.7)
XYZxyz(13.8335, 10.4635, 48.2947)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D51BB #BBA73D
analogous
#3D90BB #3D51BB #683DBB
triadic
#3D51BB #BB3D51 #51BB3D
tetradic
#3D51BB #BB3D90 #BBA73D #3DBB68
square
#3D51BB #BB3D90 #BBA73D #3DBB68
split-complementary
#3D51BB #BB683D #90BB3D
monochromatic
#1F295F #2E3D8D #3D51BB #6878CE #96A1DD

Accessibility & contrast

On white

6.79
#3D51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3D51BB
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D51BB#FFFFFF#000000##FFFFFF
##3D51BB1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d51bb;
/* rgb */ color: rgb(61, 81, 187);
/* oklch */ color: oklch(48.2% 0.168 270.7);
Tailwind
colors: {
  custom: {
    50: '#8181d0',
    500: '#3d51bb',
    950: '#000000',
  },
}
SCSS
$custom: #3d51bb;
$custom-light: #8181d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d51bb",
  "rgb": {
    "r": 61,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 230.476,
    "s": 50.806,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48174,
    "c": 0.16775,
    "h": 270.7
  },
  "luminance": 0.10465
}

Semantic roles & 50–950 ramp

primary
#3D51BB
secondary
#C8BF8C
accent
#C44EDA
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #3D51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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