#3D40CE#3D40CE

#3D40CE is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.9% C 0.213 H 273.6°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#3D40CE
RGBrgb(61, 64, 206)
HSLhsl(239, 60%, 52%)
HSVhsv(239, 70%, 81%)
CMYKcmyk(70.4%, 68.9%, 0%, 19.2%)
CIE-LABlab(36.20, 44.56, -73.37)
CIE-LCHlch(36.20, 85.84, 301.27°)
OKLaboklab(46.86% 0.0135 -0.2121)
OKLCHoklch(46.86% 0.213 273.6)
XYZxyz(14.8947, 9.1137, 59.3547)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40CE #CECB3D
analogous
#3D88CE #3D40CE #833DCE
triadic
#3D40CE #CE3D40 #40CE3D
tetradic
#3D40CE #CE3D88 #CECB3D #3DCE83
square
#3D40CE #CE3D88 #CECB3D #3DCE83
split-complementary
#3D40CE #CE833D #88CE3D
monochromatic
#1D1F73 #292CA4 #3D40CE #6E70DA #9FA0E7

Accessibility & contrast

On white

7.44
#3D40CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#3D40CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40CE
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40CE#FFFFFF#000000##FFFFFF
##3D40CE1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#004ECB
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3d40ce;
/* rgb */ color: rgb(61, 64, 206);
/* oklch */ color: oklch(46.9% 0.213 273.6);
Tailwind
colors: {
  custom: {
    50: '#8676de',
    500: '#3d40ce',
    950: '#000000',
  },
}
SCSS
$custom: #3d40ce;
$custom-light: #8676de;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40ce",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 238.759,
    "s": 59.671,
    "l": 52.353
  },
  "oklch": {
    "l": 0.46858,
    "c": 0.21255,
    "h": 273.6
  },
  "luminance": 0.09115
}

Semantic roles & 50–950 ramp

primary
#3D40CE
secondary
#D3D294
accent
#E045E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3D40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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