#3D40C3#3D40C3

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

Color values

HEX#3D40C3
RGBrgb(61, 64, 195)
HSLhsl(239, 53%, 50%)
HSVhsv(239, 69%, 76%)
CMYKcmyk(68.7%, 67.2%, 0%, 23.5%)
CIE-LABlab(35.20, 40.87, -68.62)
CIE-LCHlch(35.20, 79.87, 300.78°)
OKLaboklab(45.83% 0.0148 -0.1982)
OKLCHoklch(45.83% 0.199 274.3)
XYZxyz(13.6049, 8.5978, 52.5617)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40C3 #C3C03D
analogous
#3D83C3 #3D40C3 #7D3DC3
triadic
#3D40C3 #C33D40 #40C33D
tetradic
#3D40C3 #C33D83 #C3C03D #3DC37D
square
#3D40C3 #C33D83 #C3C03D #3DC37D
split-complementary
#3D40C3 #C37D3D #83C33D
monochromatic
#202166 #2E3095 #3D40C3 #6C6ED1 #9A9CE0

Accessibility & contrast

On white

7.72
#3D40C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3D40C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40C3
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40C3#FFFFFF#000000##FFFFFF
##3D40C31.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#004DC1
Tritanopia (blue-blind)
#00637C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3d40c3;
/* rgb */ color: rgb(61, 64, 195);
/* oklch */ color: oklch(45.8% 0.199 274.3);
Tailwind
colors: {
  custom: {
    50: '#8475d6',
    500: '#3d40c3',
    950: '#000000',
  },
}
SCSS
$custom: #3d40c3;
$custom-light: #8475d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40c3",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 238.657,
    "s": 52.756,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45826,
    "c": 0.19877,
    "h": 274.3
  },
  "luminance": 0.08599
}

Semantic roles & 50–950 ramp

primary
#3D40C3
secondary
#CCCB90
accent
#D94CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3D40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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