#3D40D4#3D40D4

#3D40D4 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.4% C 0.220 H 273.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#3D40D4
RGBrgb(61, 64, 212)
HSLhsl(239, 64%, 54%)
HSVhsv(239, 71%, 83%)
CMYKcmyk(71.2%, 69.8%, 0%, 16.9%)
CIE-LABlab(36.76, 46.55, -75.92)
CIE-LCHlch(36.76, 89.05, 301.51°)
OKLaboklab(47.43% 0.0127 -0.2195)
OKLCHoklch(47.43% 0.22 273.3)
XYZxyz(15.6376, 9.4108, 63.2669)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40D4 #D4D13D
analogous
#3D8BD4 #3D40D4 #853DD4
triadic
#3D40D4 #D43D40 #40D43D
tetradic
#3D40D4 #D43D8B #D4D13D #3DD485
square
#3D40D4 #D43D8B #D4D13D #3DD485
split-complementary
#3D40D4 #D4853D #8BD43D
monochromatic
#1B1D7B #2629AD #3D40D4 #6F71DF #A1A3EA

Accessibility & contrast

On white

7.29
#3D40D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#3D40D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40D4
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40D4#FFFFFF#000000##FFFFFF
##3D40D41.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED8
Deuteranopia (green-blind)
#004FD1
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3d40d4;
/* rgb */ color: rgb(61, 64, 212);
/* oklch */ color: oklch(47.4% 0.220 273.3);
Tailwind
colors: {
  custom: {
    50: '#8876e2',
    500: '#3d40d4',
    950: '#000000',
  },
}
SCSS
$custom: #3d40d4;
$custom-light: #8876e2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40d4",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 238.808,
    "s": 63.713,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47431,
    "c": 0.21992,
    "h": 273.3
  },
  "luminance": 0.09412
}

Semantic roles & 50–950 ramp

primary
#3D40D4
secondary
#D7D596
accent
#E341E7
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3D40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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