#3D51BE#3D51BE

#3D51BE is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.4% C 0.172 H 270.7°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#3D51BE
RGBrgb(61, 81, 190)
HSLhsl(231, 51%, 49%)
HSVhsv(231, 68%, 75%)
CMYKcmyk(67.9%, 57.4%, 0%, 25.5%)
CIE-LABlab(38.89, 28.47, -59.67)
CIE-LCHlch(38.89, 66.11, 295.50°)
OKLaboklab(48.41% 0.0022 -0.1718)
OKLCHoklch(48.41% 0.172 270.7)
XYZxyz(14.1580, 10.5933, 50.0038)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D51BE #BEAA3D
analogous
#3D92BE #3D51BE #6A3DBE
triadic
#3D51BE #BE3D51 #51BE3D
tetradic
#3D51BE #BE3D92 #BEAA3D #3DBE6A
square
#3D51BE #BE3D92 #BEAA3D #3DBE6A
split-complementary
#3D51BE #BE6A3D #92BE3D
monochromatic
#1F2A61 #2E3D90 #3D51BE #6979CF #98A2DE

Accessibility & contrast

On white

6.73
#3D51BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#3D51BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3D51BE
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D51BE#FFFFFF#000000##FFFFFF
##3D51BE1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#0056BC
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3d51be;
/* rgb */ color: rgb(61, 81, 190);
/* oklch */ color: oklch(48.4% 0.172 270.7);
Tailwind
colors: {
  custom: {
    50: '#8281d2',
    500: '#3d51be',
    950: '#000000',
  },
}
SCSS
$custom: #3d51be;
$custom-light: #8281d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d51be",
  "rgb": {
    "r": 61,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 230.698,
    "s": 51.394,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48413,
    "c": 0.17184,
    "h": 270.7
  },
  "luminance": 0.10595
}

Semantic roles & 50–950 ramp

primary
#3D51BE
secondary
#C9C08D
accent
#C54DDB
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3D51BE

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

Preview Lab → · Contrast checker → · Palette generator →

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