#3D40DB#3D40DB

#3D40DB is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.228 H 272.9°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#3D40DB
RGBrgb(61, 64, 219)
HSLhsl(239, 69%, 55%)
HSVhsv(239, 72%, 86%)
CMYKcmyk(72.1%, 70.8%, 0%, 14.1%)
CIE-LABlab(37.43, 48.85, -78.85)
CIE-LCHlch(37.43, 92.75, 301.78°)
OKLaboklab(48.11% 0.0117 -0.2281)
OKLCHoklch(48.11% 0.228 272.9)
XYZxyz(16.5398, 9.7717, 68.0186)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40DB #DBD83D
analogous
#3D8FDB #3D40DB #893DDB
triadic
#3D40DB #DB3D40 #40DB3D
tetradic
#3D40DB #DB3D8F #DBD83D #3DDB89
square
#3D40DB #DB3D8F #DBD83D #3DDB89
split-complementary
#3D40DB #DB893D #8FDB3D
monochromatic
#191B85 #2225B9 #3D40DB #7173E5 #A4A6EE

Accessibility & contrast

On white

7.11
#3D40DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#3D40DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40DB
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40DB#FFFFFF#000000##FFFFFF
##3D40DB1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E0
Deuteranopia (green-blind)
#0050D8
Tritanopia (blue-blind)
#006C89
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3d40db;
/* rgb */ color: rgb(61, 64, 219);
/* oklch */ color: oklch(48.1% 0.228 272.9);
Tailwind
colors: {
  custom: {
    50: '#8976e7',
    500: '#3d40db',
    950: '#000000',
  },
}
SCSS
$custom: #3d40db;
$custom-light: #8976e7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40db",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 238.861,
    "s": 68.696,
    "l": 54.902
  },
  "oklch": {
    "l": 0.4811,
    "c": 0.2284,
    "h": 272.9
  },
  "luminance": 0.09773
}

Semantic roles & 50–950 ramp

primary
#3D40DB
secondary
#DBDA99
accent
#E83CEC
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #3D40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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