#3D40C1#3D40C1

#3D40C1 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.6% C 0.196 H 274.4°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#3D40C1
RGBrgb(61, 64, 193)
HSLhsl(239, 52%, 50%)
HSVhsv(239, 68%, 76%)
CMYKcmyk(68.4%, 66.8%, 0%, 24.3%)
CIE-LABlab(35.02, 40.19, -67.74)
CIE-LCHlch(35.02, 78.77, 300.68°)
OKLaboklab(45.64% 0.015 -0.1956)
OKLCHoklch(45.64% 0.196 274.4)
XYZxyz(13.3803, 8.5079, 51.3788)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40C1 #C1BE3D
analogous
#3D82C1 #3D40C1 #7C3DC1
triadic
#3D40C1 #C13D40 #40C13D
tetradic
#3D40C1 #C13D82 #C1BE3D #3DC17C
square
#3D40C1 #C13D82 #C1BE3D #3DC17C
split-complementary
#3D40C1 #C17C3D #82C13D
monochromatic
#202164 #2E3192 #3D40C1 #6B6DD0 #999BDF

Accessibility & contrast

On white

7.77
#3D40C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3D40C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40C1
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40C1#FFFFFF#000000##FFFFFF
##3D40C11.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#004CBF
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3d40c1;
/* rgb */ color: rgb(61, 64, 193);
/* oklch */ color: oklch(45.6% 0.196 274.4);
Tailwind
colors: {
  custom: {
    50: '#8475d5',
    500: '#3d40c1',
    950: '#000000',
  },
}
SCSS
$custom: #3d40c1;
$custom-light: #8475d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40c1",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 238.636,
    "s": 51.969,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45642,
    "c": 0.19623,
    "h": 274.4
  },
  "luminance": 0.08509
}

Semantic roles & 50–950 ramp

primary
#3D40C1
secondary
#CBC98F
accent
#D84CDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3D40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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