#3D51C4#3D51C4

#3D51C4 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.9% C 0.180 H 270.7°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#3D51C4
RGBrgb(61, 81, 196)
HSLhsl(231, 53%, 50%)
HSVhsv(231, 69%, 77%)
CMYKcmyk(68.9%, 58.7%, 0%, 23.1%)
CIE-LABlab(39.35, 30.60, -62.42)
CIE-LCHlch(39.35, 69.52, 296.12°)
OKLaboklab(48.9% 0.0023 -0.1799)
OKLCHoklch(48.9% 0.18 270.7)
XYZxyz(14.8273, 10.8610, 53.5288)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D51C4 #C4B03D
analogous
#3D95C4 #3D51C4 #6C3DC4
triadic
#3D51C4 #C43D51 #51C43D
tetradic
#3D51C4 #C43D95 #C4B03D #3DC46C
square
#3D51C4 #C43D95 #C4B03D #3DC46C
split-complementary
#3D51C4 #C46C3D #95C43D
monochromatic
#1F2A67 #2E3D96 #3D51C4 #6C7BD2 #9BA5E1

Accessibility & contrast

On white

6.62
#3D51C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#3D51C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3D51C4
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D51C4#FFFFFF#000000##FFFFFF
##3D51C41.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3d51c4;
/* rgb */ color: rgb(61, 81, 196);
/* oklch */ color: oklch(48.9% 0.180 270.7);
Tailwind
colors: {
  custom: {
    50: '#8381d7',
    500: '#3d51c4',
    950: '#000000',
  },
}
SCSS
$custom: #3d51c4;
$custom-light: #8381d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d51c4",
  "rgb": {
    "r": 61,
    "g": 81,
    "b": 196
  },
  "hsl": {
    "h": 231.111,
    "s": 53.36,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48899,
    "c": 0.17994,
    "h": 270.7
  },
  "luminance": 0.10862
}

Semantic roles & 50–950 ramp

primary
#3D51C4
secondary
#CDC490
accent
#C74BDD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3D51C4

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

Preview Lab → · Contrast checker → · Palette generator →

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