#3D40A5#3D40A5

#3D40A5 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.159 H 276.1°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#3D40A5
RGBrgb(61, 64, 165)
HSLhsl(238, 46%, 44%)
HSVhsv(238, 63%, 65%)
CMYKcmyk(63%, 61.2%, 0%, 35.3%)
CIE-LABlab(32.65, 30.59, -55.01)
CIE-LCHlch(32.65, 62.94, 299.08°)
OKLaboklab(43.17% 0.0171 -0.1583)
OKLCHoklch(43.17% 0.159 276.1)
XYZxyz(10.5472, 7.3747, 36.4577)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40A5 #A5A23D
analogous
#3D74A5 #3D40A5 #6E3DA5
triadic
#3D40A5 #A53D40 #40A53D
tetradic
#3D40A5 #A53D74 #A5A23D #3DA56E
square
#3D40A5 #A53D74 #A5A23D #3DA56E
split-complementary
#3D40A5 #A56E3D #74A53D
monochromatic
#1C1D4C #2C2F78 #3D40A5 #5C5FC3 #898BD3

Accessibility & contrast

On white

8.48
#3D40A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#3D40A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40A5
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40A5#FFFFFF#000000##FFFFFF
##3D40A51.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3d40a5;
/* rgb */ color: rgb(61, 64, 165);
/* oklch */ color: oklch(43.2% 0.159 276.1);
Tailwind
colors: {
  custom: {
    50: '#7e75c0',
    500: '#3d40a5',
    950: '#000000',
  },
}
SCSS
$custom: #3d40a5;
$custom-light: #7e75c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40a5",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 238.269,
    "s": 46.018,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43171,
    "c": 0.15922,
    "h": 276.1
  },
  "luminance": 0.07376
}

Semantic roles & 50–950 ramp

primary
#3D40A5
secondary
#BEBC80
accent
#D252D6
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3D40A5

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

Preview Lab → · Contrast checker → · Palette generator →

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