#3D40BC#3D40BC

#3D40BC is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.190 H 274.7°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#3D40BC
RGBrgb(61, 64, 188)
HSLhsl(239, 51%, 49%)
HSVhsv(239, 68%, 74%)
CMYKcmyk(67.6%, 66%, 0%, 26.3%)
CIE-LABlab(34.58, 38.50, -65.53)
CIE-LCHlch(34.58, 76.00, 300.43°)
OKLaboklab(45.18% 0.0155 -0.1892)
OKLCHoklch(45.18% 0.19 274.7)
XYZxyz(12.8320, 8.2886, 48.4908)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40BC #BCB93D
analogous
#3D80BC #3D40BC #7A3DBC
triadic
#3D40BC #BC3D40 #40BC3D
tetradic
#3D40BC #BC3D80 #BCB93D #3DBC7A
square
#3D40BC #BC3D80 #BCB93D #3DBC7A
split-complementary
#3D40BC #BC7A3D #80BC3D
monochromatic
#1F2160 #2E308E #3D40BC #686BCE #9698DD

Accessibility & contrast

On white

7.90
#3D40BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3D40BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40BC
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40BC#FFFFFF#000000##FFFFFF
##3D40BC1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3d40bc;
/* rgb */ color: rgb(61, 64, 188);
/* oklch */ color: oklch(45.2% 0.190 274.7);
Tailwind
colors: {
  custom: {
    50: '#8375d1',
    500: '#3d40bc',
    950: '#000000',
  },
}
SCSS
$custom: #3d40bc;
$custom-light: #8375d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40bc",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 238.583,
    "s": 51.004,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45185,
    "c": 0.18981,
    "h": 274.7
  },
  "luminance": 0.0829
}

Semantic roles & 50–950 ramp

primary
#3D40BC
secondary
#C9C78C
accent
#D74DDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3D40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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