#3D51BC#3D51BC

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

Color values

HEX#3D51BC
RGBrgb(61, 81, 188)
HSLhsl(231, 51%, 49%)
HSVhsv(231, 68%, 74%)
CMYKcmyk(67.6%, 56.9%, 0%, 26.3%)
CIE-LABlab(38.74, 27.75, -58.75)
CIE-LCHlch(38.74, 64.97, 295.29°)
OKLaboklab(48.25% 0.0021 -0.1691)
OKLCHoklch(48.25% 0.169 270.7)
XYZxyz(13.9409, 10.5065, 48.8605)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D51BC #BCA83D
analogous
#3D91BC #3D51BC #693DBC
triadic
#3D51BC #BC3D51 #51BC3D
tetradic
#3D51BC #BC3D91 #BCA83D #3DBC69
square
#3D51BC #BC3D91 #BCA83D #3DBC69
split-complementary
#3D51BC #BC693D #91BC3D
monochromatic
#1F2960 #2E3D8E #3D51BC #6878CE #96A1DD

Accessibility & contrast

On white

6.77
#3D51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#3D51BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3D51BC
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D51BC#FFFFFF#000000##FFFFFF
##3D51BC1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d51bc;
/* rgb */ color: rgb(61, 81, 188);
/* oklch */ color: oklch(48.3% 0.169 270.7);
Tailwind
colors: {
  custom: {
    50: '#8181d1',
    500: '#3d51bc',
    950: '#000000',
  },
}
SCSS
$custom: #3d51bc;
$custom-light: #8181d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d51bc",
  "rgb": {
    "r": 61,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 230.551,
    "s": 51.004,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48254,
    "c": 0.16912,
    "h": 270.7
  },
  "luminance": 0.10508
}

Semantic roles & 50–950 ramp

primary
#3D51BC
secondary
#C9BF8C
accent
#C44DDA
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #3D51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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