#3D40BB#3D40BB

#3D40BB is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.1% C 0.189 H 274.8°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#3D40BB
RGBrgb(61, 64, 187)
HSLhsl(239, 51%, 49%)
HSVhsv(239, 67%, 73%)
CMYKcmyk(67.4%, 65.8%, 0%, 26.7%)
CIE-LABlab(34.49, 38.16, -65.09)
CIE-LCHlch(34.49, 75.45, 300.38°)
OKLaboklab(45.09% 0.0156 -0.1879)
OKLCHoklch(45.09% 0.189 274.8)
XYZxyz(12.7245, 8.2456, 47.9251)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40BB #BBB83D
analogous
#3D7FBB #3D40BB #793DBB
triadic
#3D40BB #BB3D40 #40BB3D
tetradic
#3D40BB #BB3D7F #BBB83D #3DBB79
square
#3D40BB #BB3D7F #BBB83D #3DBB79
split-complementary
#3D40BB #BB793D #7FBB3D
monochromatic
#1F205F #2E308D #3D40BB #686ACE #9697DD

Accessibility & contrast

On white

7.93
#3D40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3D40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40BB
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40BB#FFFFFF#000000##FFFFFF
##3D40BB1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#004BB9
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3d40bb;
/* rgb */ color: rgb(61, 64, 187);
/* oklch */ color: oklch(45.1% 0.189 274.8);
Tailwind
colors: {
  custom: {
    50: '#8275d0',
    500: '#3d40bb',
    950: '#000000',
  },
}
SCSS
$custom: #3d40bb;
$custom-light: #8275d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40bb",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 238.571,
    "s": 50.806,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45094,
    "c": 0.18852,
    "h": 274.8
  },
  "luminance": 0.08247
}

Semantic roles & 50–950 ramp

primary
#3D40BB
secondary
#C8C78C
accent
#D74EDA
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3D40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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