#3D40C2#3D40C2

#3D40C2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.7% C 0.197 H 274.3°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#3D40C2
RGBrgb(61, 64, 194)
HSLhsl(239, 52%, 50%)
HSVhsv(239, 69%, 76%)
CMYKcmyk(68.6%, 67%, 0%, 23.9%)
CIE-LABlab(35.11, 40.53, -68.18)
CIE-LCHlch(35.11, 79.32, 300.73°)
OKLaboklab(45.73% 0.0149 -0.1969)
OKLCHoklch(45.73% 0.197 274.3)
XYZxyz(13.4922, 8.5527, 51.9683)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40C2 #C2BF3D
analogous
#3D82C2 #3D40C2 #7D3DC2
triadic
#3D40C2 #C23D40 #40C23D
tetradic
#3D40C2 #C23D82 #C2BF3D #3DC27D
square
#3D40C2 #C23D82 #C2BF3D #3DC27D
split-complementary
#3D40C2 #C27D3D #82C23D
monochromatic
#202165 #2E3193 #3D40C2 #6C6ED1 #9A9CDF

Accessibility & contrast

On white

7.75
#3D40C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3D40C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40C2
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40C2#FFFFFF#000000##FFFFFF
##3D40C21.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#004CC0
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3d40c2;
/* rgb */ color: rgb(61, 64, 194);
/* oklch */ color: oklch(45.7% 0.197 274.3);
Tailwind
colors: {
  custom: {
    50: '#8475d6',
    500: '#3d40c2',
    950: '#000000',
  },
}
SCSS
$custom: #3d40c2;
$custom-light: #8475d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40c2",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 238.647,
    "s": 52.157,
    "l": 50
  },
  "oklch": {
    "l": 0.45734,
    "c": 0.19749,
    "h": 274.3
  },
  "luminance": 0.08554
}

Semantic roles & 50–950 ramp

primary
#3D40C2
secondary
#CBCA90
accent
#D84CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3D40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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