#3D51C8#3D51C8

#3D51C8 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.2% C 0.185 H 270.7°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#3D51C8
RGBrgb(61, 81, 200)
HSLhsl(231, 56%, 51%)
HSVhsv(231, 70%, 78%)
CMYKcmyk(69.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(39.66, 32.02, -64.24)
CIE-LCHlch(39.66, 71.78, 296.50°)
OKLaboklab(49.23% 0.0023 -0.1853)
OKLCHoklch(49.23% 0.185 270.7)
XYZxyz(15.2887, 11.0456, 55.9587)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D51C8 #C8B43D
analogous
#3D96C8 #3D51C8 #6E3DC8
triadic
#3D51C8 #C83D51 #51C83D
tetradic
#3D51C8 #C83D96 #C8B43D #3DC86E
square
#3D51C8 #C83D96 #C8B43D #3DC86E
split-complementary
#3D51C8 #C86E3D #96C83D
monochromatic
#1F2A6C #2C3C9C #3D51C8 #6D7CD6 #9CA7E3

Accessibility & contrast

On white

6.54
#3D51C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#3D51C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3D51C8
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D51C8#FFFFFF#000000##FFFFFF
##3D51C81.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0057C6
Tritanopia (blue-blind)
#006F84
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3d51c8;
/* rgb */ color: rgb(61, 81, 200);
/* oklch */ color: oklch(49.2% 0.185 270.7);
Tailwind
colors: {
  custom: {
    50: '#8481da',
    500: '#3d51c8',
    950: '#000000',
  },
}
SCSS
$custom: #3d51c8;
$custom-light: #8481da;
$custom-dark: #000000;
JSON
{
  "hex": "#3d51c8",
  "rgb": {
    "r": 61,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 231.367,
    "s": 55.823,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49228,
    "c": 0.18527,
    "h": 270.7
  },
  "luminance": 0.11047
}

Semantic roles & 50–950 ramp

primary
#3D51C8
secondary
#CFC692
accent
#C949DF
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3D51C8

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

Preview Lab → · Contrast checker → · Palette generator →

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