#3D51C2#3D51C2

#3D51C2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.177 H 270.7°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#3D51C2
RGBrgb(61, 81, 194)
HSLhsl(231, 52%, 50%)
HSVhsv(231, 69%, 76%)
CMYKcmyk(68.6%, 58.2%, 0%, 23.9%)
CIE-LABlab(39.19, 29.89, -61.51)
CIE-LCHlch(39.19, 68.39, 295.92°)
OKLaboklab(48.74% 0.0022 -0.1772)
OKLCHoklch(48.74% 0.177 270.7)
XYZxyz(14.6012, 10.7706, 52.3379)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D51C2 #C2AE3D
analogous
#3D94C2 #3D51C2 #6B3DC2
triadic
#3D51C2 #C23D51 #51C23D
tetradic
#3D51C2 #C23D94 #C2AE3D #3DC26B
square
#3D51C2 #C23D94 #C2AE3D #3DC26B
split-complementary
#3D51C2 #C26B3D #94C23D
monochromatic
#202A65 #2E3E93 #3D51C2 #6C7BD1 #9AA5DF

Accessibility & contrast

On white

6.66
#3D51C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#3D51C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3D51C2
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D51C2#FFFFFF#000000##FFFFFF
##3D51C21.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3d51c2;
/* rgb */ color: rgb(61, 81, 194);
/* oklch */ color: oklch(48.7% 0.177 270.7);
Tailwind
colors: {
  custom: {
    50: '#8381d5',
    500: '#3d51c2',
    950: '#000000',
  },
}
SCSS
$custom: #3d51c2;
$custom-light: #8381d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d51c2",
  "rgb": {
    "r": 61,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 230.977,
    "s": 52.157,
    "l": 50
  },
  "oklch": {
    "l": 0.48736,
    "c": 0.17725,
    "h": 270.7
  },
  "luminance": 0.10772
}

Semantic roles & 50–950 ramp

primary
#3D51C2
secondary
#CBC290
accent
#C64CDC
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3D51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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