#3D40B2#3D40B2

#3D40B2 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.3% C 0.177 H 275.3°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#3D40B2
RGBrgb(61, 64, 178)
HSLhsl(238, 49%, 47%)
HSVhsv(238, 66%, 70%)
CMYKcmyk(65.7%, 64%, 0%, 30.2%)
CIE-LABlab(33.72, 35.08, -61.03)
CIE-LCHlch(33.72, 70.39, 299.89°)
OKLaboklab(44.29% 0.0164 -0.176)
OKLCHoklch(44.29% 0.177 275.3)
XYZxyz(11.7911, 7.8722, 43.0090)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40B2 #B2AF3D
analogous
#3D7AB2 #3D40B2 #753DB2
triadic
#3D40B2 #B23D40 #40B23D
tetradic
#3D40B2 #B23D7A #B2AF3D #3DB275
square
#3D40B2 #B23D7A #B2AF3D #3DB275
split-complementary
#3D40B2 #B2753D #7AB23D
monochromatic
#1E1F57 #2D3084 #3D40B2 #6365C9 #9092D9

Accessibility & contrast

On white

8.16
#3D40B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3D40B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40B2
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40B2#FFFFFF#000000##FFFFFF
##3D40B21.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3d40b2;
/* rgb */ color: rgb(61, 64, 178);
/* oklch */ color: oklch(44.3% 0.177 275.3);
Tailwind
colors: {
  custom: {
    50: '#8175ca',
    500: '#3d40b2',
    950: '#000000',
  },
}
SCSS
$custom: #3d40b2;
$custom-light: #8175ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40b2",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 238.462,
    "s": 48.954,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44291,
    "c": 0.17673,
    "h": 275.3
  },
  "luminance": 0.07873
}

Semantic roles & 50–950 ramp

primary
#3D40B2
secondary
#C4C387
accent
#D54FD9
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3D40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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