#3D40C5#3D40C5

#3D40C5 is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.0% C 0.201 H 274.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#3D40C5
RGBrgb(61, 64, 197)
HSLhsl(239, 54%, 51%)
HSVhsv(239, 69%, 77%)
CMYKcmyk(69%, 67.5%, 0%, 22.7%)
CIE-LABlab(35.38, 41.54, -69.49)
CIE-LCHlch(35.38, 80.96, 300.87°)
OKLaboklab(46.01% 0.0146 -0.2008)
OKLCHoklch(46.01% 0.201 274.2)
XYZxyz(13.8326, 8.6888, 53.7606)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40C5 #C5C23D
analogous
#3D84C5 #3D40C5 #7E3DC5
triadic
#3D40C5 #C53D40 #40C53D
tetradic
#3D40C5 #C53D84 #C5C23D #3DC57E
square
#3D40C5 #C53D84 #C5C23D #3DC57E
split-complementary
#3D40C5 #C57E3D #84C53D
monochromatic
#1F2168 #2D3098 #3D40C5 #6C6ED3 #9B9DE1

Accessibility & contrast

On white

7.67
#3D40C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#3D40C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40C5
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40C5#FFFFFF#000000##FFFFFF
##3D40C51.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#004DC3
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3d40c5;
/* rgb */ color: rgb(61, 64, 197);
/* oklch */ color: oklch(46.0% 0.201 274.2);
Tailwind
colors: {
  custom: {
    50: '#8575d8',
    500: '#3d40c5',
    950: '#000000',
  },
}
SCSS
$custom: #3d40c5;
$custom-light: #8575d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40c5",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 238.676,
    "s": 53.968,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46012,
    "c": 0.2013,
    "h": 274.2
  },
  "luminance": 0.0869
}

Semantic roles & 50–950 ramp

primary
#3D40C5
secondary
#CDCC91
accent
#DA4ADD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3D40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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