#3D40C8#3D40C8

#3D40C8 is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.3% C 0.205 H 274.0°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#3D40C8
RGBrgb(61, 64, 200)
HSLhsl(239, 56%, 51%)
HSVhsv(239, 70%, 78%)
CMYKcmyk(69.5%, 68%, 0%, 21.6%)
CIE-LABlab(35.65, 42.55, -70.80)
CIE-LCHlch(35.65, 82.60, 301.01°)
OKLaboklab(46.29% 0.0142 -0.2046)
OKLCHoklch(46.29% 0.205 274)
XYZxyz(14.1797, 8.8277, 55.5890)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40C8 #C8C53D
analogous
#3D85C8 #3D40C8 #7F3DC8
triadic
#3D40C8 #C83D40 #40C83D
tetradic
#3D40C8 #C83D85 #C8C53D #3DC87F
square
#3D40C8 #C83D85 #C8C53D #3DC87F
split-complementary
#3D40C8 #C87F3D #85C83D
monochromatic
#1F206C #2C2F9C #3D40C8 #6D6FD6 #9C9EE3

Accessibility & contrast

On white

7.59
#3D40C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#3D40C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40C8
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40C8#FFFFFF#000000##FFFFFF
##3D40C81.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d40c8;
/* rgb */ color: rgb(61, 64, 200);
/* oklch */ color: oklch(46.3% 0.205 274.0);
Tailwind
colors: {
  custom: {
    50: '#8575da',
    500: '#3d40c8',
    950: '#000000',
  },
}
SCSS
$custom: #3d40c8;
$custom-light: #8575da;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40c8",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 238.705,
    "s": 55.823,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46292,
    "c": 0.20507,
    "h": 274
  },
  "luminance": 0.08829
}

Semantic roles & 50–950 ramp

primary
#3D40C8
secondary
#CFCE92
accent
#DC49DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3D40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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