#3D40AE#3D40AE

#3D40AE is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.171 H 275.6°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#3D40AE
RGBrgb(61, 64, 174)
HSLhsl(238, 48%, 46%)
HSVhsv(238, 65%, 68%)
CMYKcmyk(64.9%, 63.2%, 0%, 31.8%)
CIE-LABlab(33.38, 33.70, -59.20)
CIE-LCHlch(33.38, 68.12, 299.65°)
OKLaboklab(43.94% 0.0166 -0.1706)
OKLCHoklch(43.94% 0.171 275.6)
XYZxyz(11.3953, 7.7139, 40.9246)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40AE #AEAB3D
analogous
#3D78AE #3D40AE #723DAE
triadic
#3D40AE #AE3D40 #40AE3D
tetradic
#3D40AE #AE3D78 #AEAB3D #3DAE72
square
#3D40AE #AE3D78 #AEAB3D #3DAE72
split-complementary
#3D40AE #AE723D #78AE3D
monochromatic
#1D1F53 #2D2F81 #3D40AE #6163C8 #8E90D7

Accessibility & contrast

On white

8.26
#3D40AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3D40AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40AE
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40AE#FFFFFF#000000##FFFFFF
##3D40AE1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3d40ae;
/* rgb */ color: rgb(61, 64, 174);
/* oklch */ color: oklch(43.9% 0.171 275.6);
Tailwind
colors: {
  custom: {
    50: '#8075c7',
    500: '#3d40ae',
    950: '#000000',
  },
}
SCSS
$custom: #3d40ae;
$custom-light: #8075c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40ae",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 238.407,
    "s": 48.085,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43941,
    "c": 0.17141,
    "h": 275.6
  },
  "luminance": 0.07715
}

Semantic roles & 50–950 ramp

primary
#3D40AE
secondary
#C2C185
accent
#D450D8
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3D40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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