#3D40BE#3D40BE

#3D40BE is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.192 H 274.6°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#3D40BE
RGBrgb(61, 64, 190)
HSLhsl(239, 51%, 49%)
HSVhsv(239, 68%, 75%)
CMYKcmyk(67.9%, 66.3%, 0%, 25.5%)
CIE-LABlab(34.75, 39.18, -66.42)
CIE-LCHlch(34.75, 77.11, 300.53°)
OKLaboklab(45.37% 0.0153 -0.1918)
OKLCHoklch(45.37% 0.192 274.6)
XYZxyz(13.0491, 8.3754, 49.6341)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40BE #BEBB3D
analogous
#3D81BE #3D40BE #7B3DBE
triadic
#3D40BE #BE3D40 #40BE3D
tetradic
#3D40BE #BE3D81 #BEBB3D #3DBE7B
square
#3D40BE #BE3D81 #BEBB3D #3DBE7B
split-complementary
#3D40BE #BE7B3D #81BE3D
monochromatic
#1F2161 #2E3090 #3D40BE #696CCF #9899DE

Accessibility & contrast

On white

7.85
#3D40BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3D40BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40BE
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40BE#FFFFFF#000000##FFFFFF
##3D40BE1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3d40be;
/* rgb */ color: rgb(61, 64, 190);
/* oklch */ color: oklch(45.4% 0.192 274.6);
Tailwind
colors: {
  custom: {
    50: '#8375d3',
    500: '#3d40be',
    950: '#000000',
  },
}
SCSS
$custom: #3d40be;
$custom-light: #8375d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40be",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 238.605,
    "s": 51.394,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45367,
    "c": 0.19238,
    "h": 274.6
  },
  "luminance": 0.08377
}

Semantic roles & 50–950 ramp

primary
#3D40BE
secondary
#C9C88D
accent
#D84DDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3D40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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