#3D40C9#3D40C9

#3D40C9 is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.4% C 0.206 H 273.9°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#3D40C9
RGBrgb(61, 64, 201)
HSLhsl(239, 56%, 51%)
HSVhsv(239, 70%, 79%)
CMYKcmyk(69.7%, 68.2%, 0%, 21.2%)
CIE-LABlab(35.74, 42.89, -71.23)
CIE-LCHlch(35.74, 83.14, 301.05°)
OKLaboklab(46.39% 0.0141 -0.2058)
OKLCHoklch(46.39% 0.206 273.9)
XYZxyz(14.2970, 8.8746, 56.2065)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40C9 #C9C63D
analogous
#3D86C9 #3D40C9 #803DC9
triadic
#3D40C9 #C93D40 #40C93D
tetradic
#3D40C9 #C93D86 #C9C63D #3DC980
square
#3D40C9 #C93D86 #C9C63D #3DC980
split-complementary
#3D40C9 #C9803D #86C93D
monochromatic
#1E206D #2C2E9D #3D40C9 #6D6FD6 #9D9EE4

Accessibility & contrast

On white

7.57
#3D40C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#3D40C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40C9
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40C9#FFFFFF#000000##FFFFFF
##3D40C91.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#004EC6
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3d40c9;
/* rgb */ color: rgb(61, 64, 201);
/* oklch */ color: oklch(46.4% 0.206 273.9);
Tailwind
colors: {
  custom: {
    50: '#8576db',
    500: '#3d40c9',
    950: '#000000',
  },
}
SCSS
$custom: #3d40c9;
$custom-light: #8576db;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40c9",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 238.714,
    "s": 56.452,
    "l": 51.373
  },
  "oklch": {
    "l": 0.46385,
    "c": 0.20632,
    "h": 273.9
  },
  "luminance": 0.08876
}

Semantic roles & 50–950 ramp

primary
#3D40C9
secondary
#D0CE92
accent
#DC48E0
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3D40C9

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

Preview Lab → · Contrast checker → · Palette generator →

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