#3D40D5#3D40D5

#3D40D5 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.221 H 273.3°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#3D40D5
RGBrgb(61, 64, 213)
HSLhsl(239, 64%, 54%)
HSVhsv(239, 71%, 84%)
CMYKcmyk(71.4%, 70%, 0%, 16.5%)
CIE-LABlab(36.86, 46.88, -76.34)
CIE-LCHlch(36.86, 89.59, 301.55°)
OKLaboklab(47.53% 0.0126 -0.2208)
OKLCHoklch(47.53% 0.221 273.3)
XYZxyz(15.7641, 9.4614, 63.9333)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40D5 #D5D23D
analogous
#3D8CD5 #3D40D5 #863DD5
triadic
#3D40D5 #D53D40 #40D53D
tetradic
#3D40D5 #D53D8C #D5D23D #3DD586
square
#3D40D5 #D53D8C #D5D23D #3DD586
split-complementary
#3D40D5 #D5863D #8CD53D
monochromatic
#1B1D7D #2629AF #3D40D5 #6F72E0 #A2A3EB

Accessibility & contrast

On white

7.26
#3D40D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#3D40D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40D5
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40D5#FFFFFF#000000##FFFFFF
##3D40D51.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED9
Deuteranopia (green-blind)
#004FD2
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3d40d5;
/* rgb */ color: rgb(61, 64, 213);
/* oklch */ color: oklch(47.5% 0.221 273.3);
Tailwind
colors: {
  custom: {
    50: '#8876e3',
    500: '#3d40d5',
    950: '#000000',
  },
}
SCSS
$custom: #3d40d5;
$custom-light: #8876e3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40d5",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 238.816,
    "s": 64.407,
    "l": 53.725
  },
  "oklch": {
    "l": 0.47528,
    "c": 0.22114,
    "h": 273.3
  },
  "luminance": 0.09463
}

Semantic roles & 50–950 ramp

primary
#3D40D5
secondary
#D7D696
accent
#E440E7
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3D40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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