#3D40AC#3D40AC

#3D40AC is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.8% C 0.169 H 275.7°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#3D40AC
RGBrgb(61, 64, 172)
HSLhsl(238, 48%, 46%)
HSVhsv(238, 65%, 67%)
CMYKcmyk(64.5%, 62.8%, 0%, 32.5%)
CIE-LABlab(33.21, 33.01, -58.27)
CIE-LCHlch(33.21, 66.98, 299.53°)
OKLaboklab(43.77% 0.0167 -0.1679)
OKLCHoklch(43.77% 0.169 275.7)
XYZxyz(11.2018, 7.6365, 39.9054)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40AC #ACA93D
analogous
#3D77AC #3D40AC #713DAC
triadic
#3D40AC #AC3D40 #40AC3D
tetradic
#3D40AC #AC3D77 #ACA93D #3DAC71
square
#3D40AC #AC3D77 #ACA93D #3DAC71
split-complementary
#3D40AC #AC713D #77AC3D
monochromatic
#1D1E52 #2D2F7F #3D40AC #6062C7 #8D8FD7

Accessibility & contrast

On white

8.31
#3D40AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3D40AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40AC
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40AC#FFFFFF#000000##FFFFFF
##3D40AC1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#005B70
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3d40ac;
/* rgb */ color: rgb(61, 64, 172);
/* oklch */ color: oklch(43.8% 0.169 275.7);
Tailwind
colors: {
  custom: {
    50: '#7f75c6',
    500: '#3d40ac',
    950: '#000000',
  },
}
SCSS
$custom: #3d40ac;
$custom-light: #7f75c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40ac",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 238.378,
    "s": 47.639,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43768,
    "c": 0.16872,
    "h": 275.7
  },
  "luminance": 0.07637
}

Semantic roles & 50–950 ramp

primary
#3D40AC
secondary
#C1C084
accent
#D451D7
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3D40AC

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

Preview Lab → · Contrast checker → · Palette generator →

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