#3D40E0#3D40E0

#3D40E0 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.6% C 0.234 H 272.7°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#3D40E0
RGBrgb(61, 64, 224)
HSLhsl(239, 72%, 56%)
HSVhsv(239, 73%, 88%)
CMYKcmyk(72.8%, 71.4%, 0%, 12.2%)
CIE-LABlab(37.91, 50.48, -80.92)
CIE-LCHlch(37.91, 95.37, 301.96°)
OKLaboklab(48.6% 0.011 -0.2341)
OKLCHoklch(48.6% 0.234 272.7)
XYZxyz(17.2079, 10.0389, 71.5374)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40E0 #E0DD3D
analogous
#3D91E0 #3D40E0 #8B3DE0
triadic
#3D40E0 #E03D40 #40E03D
tetradic
#3D40E0 #E03D91 #E0DD3D #3DE08B
square
#3D40E0 #E03D91 #E0DD3D #3DE08B
split-complementary
#3D40E0 #E08B3D #91E03D
monochromatic
#16198C #1F22C1 #3D40E0 #7274E8 #A7A8F1

Accessibility & contrast

On white

6.98
#3D40E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#3D40E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3D40E0
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40E0#FFFFFF#000000##FFFFFF
##3D40E01.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E5
Deuteranopia (green-blind)
#0051DD
Tritanopia (blue-blind)
#006D8C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3d40e0;
/* rgb */ color: rgb(61, 64, 224);
/* oklch */ color: oklch(48.6% 0.234 272.7);
Tailwind
colors: {
  custom: {
    50: '#8a76eb',
    500: '#3d40e0',
    950: '#000000',
  },
}
SCSS
$custom: #3d40e0;
$custom-light: #8a76eb;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40e0",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 224
  },
  "hsl": {
    "h": 238.896,
    "s": 72.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.486,
    "c": 0.23438,
    "h": 272.7
  },
  "luminance": 0.10041
}

Semantic roles & 50–950 ramp

primary
#3D40E0
secondary
#DEDD9B
accent
#EC39EF
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #3D40E0

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

Preview Lab → · Contrast checker → · Palette generator →

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