#3D40AF#3D40AF

#3D40AF is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.0% C 0.173 H 275.5°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#3D40AF
RGBrgb(61, 64, 175)
HSLhsl(238, 48%, 46%)
HSVhsv(238, 65%, 69%)
CMYKcmyk(65.1%, 63.4%, 0%, 31.4%)
CIE-LABlab(33.46, 34.05, -59.66)
CIE-LCHlch(33.46, 68.69, 299.71°)
OKLaboklab(44.03% 0.0166 -0.1719)
OKLCHoklch(44.03% 0.173 275.5)
XYZxyz(11.4932, 7.7531, 41.4399)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40AF #AFAC3D
analogous
#3D79AF #3D40AF #733DAF
triadic
#3D40AF #AF3D40 #40AF3D
tetradic
#3D40AF #AF3D79 #AFAC3D #3DAF73
square
#3D40AF #AF3D79 #AFAC3D #3DAF73
split-complementary
#3D40AF #AF733D #79AF3D
monochromatic
#1D1F54 #2D2F82 #3D40AF #6164C8 #8F91D8

Accessibility & contrast

On white

8.23
#3D40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#3D40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40AF
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40AF#FFFFFF#000000##FFFFFF
##3D40AF1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3d40af;
/* rgb */ color: rgb(61, 64, 175);
/* oklch */ color: oklch(44.0% 0.173 275.5);
Tailwind
colors: {
  custom: {
    50: '#8075c8',
    500: '#3d40af',
    950: '#000000',
  },
}
SCSS
$custom: #3d40af;
$custom-light: #8075c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40af",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 238.421,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44028,
    "c": 0.17275,
    "h": 275.5
  },
  "luminance": 0.07754
}

Semantic roles & 50–950 ramp

primary
#3D40AF
secondary
#C3C185
accent
#D450D8
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3D40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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