#3D40D6#3D40D6

#3D40D6 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.6% C 0.222 H 273.2°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#3D40D6
RGBrgb(61, 64, 214)
HSLhsl(239, 65%, 54%)
HSVhsv(239, 71%, 84%)
CMYKcmyk(71.5%, 70.1%, 0%, 16.1%)
CIE-LABlab(36.95, 47.21, -76.76)
CIE-LCHlch(36.95, 90.12, 301.59°)
OKLaboklab(47.62% 0.0124 -0.222)
OKLCHoklch(47.62% 0.222 273.2)
XYZxyz(15.8914, 9.5123, 64.6039)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40D6 #D6D33D
analogous
#3D8CD6 #3D40D6 #873DD6
triadic
#3D40D6 #D63D40 #40D63D
tetradic
#3D40D6 #D63D8C #D6D33D #3DD687
square
#3D40D6 #D63D8C #D6D33D #3DD687
split-complementary
#3D40D6 #D6873D #8CD63D
monochromatic
#1B1D7E #2528B1 #3D40D6 #7072E1 #A2A3EB

Accessibility & contrast

On white

7.23
#3D40D6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#3D40D6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40D6
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40D6#FFFFFF#000000##FFFFFF
##3D40D61.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDB
Deuteranopia (green-blind)
#0050D3
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3d40d6;
/* rgb */ color: rgb(61, 64, 214);
/* oklch */ color: oklch(47.6% 0.222 273.2);
Tailwind
colors: {
  custom: {
    50: '#8876e4',
    500: '#3d40d6',
    950: '#000000',
  },
}
SCSS
$custom: #3d40d6;
$custom-light: #8876e4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40d6",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 238.824,
    "s": 65.106,
    "l": 53.922
  },
  "oklch": {
    "l": 0.47624,
    "c": 0.22236,
    "h": 273.2
  },
  "luminance": 0.09514
}

Semantic roles & 50–950 ramp

primary
#3D40D6
secondary
#D8D797
accent
#E540E8
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3D40D6

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

Preview Lab → · Contrast checker → · Palette generator →

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