#3D40A2#3D40A2

#3D40A2 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.155 H 276.3°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#3D40A2
RGBrgb(61, 64, 162)
HSLhsl(238, 45%, 44%)
HSVhsv(238, 62%, 64%)
CMYKcmyk(62.3%, 60.5%, 0%, 36.5%)
CIE-LABlab(32.41, 29.56, -53.59)
CIE-LCHlch(32.41, 61.20, 298.88°)
OKLaboklab(42.92% 0.0171 -0.1541)
OKLCHoklch(42.92% 0.155 276.3)
XYZxyz(10.2773, 7.2667, 35.0364)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D40A2 #A29F3D
analogous
#3D72A2 #3D40A2 #6C3DA2
triadic
#3D40A2 #A23D40 #40A23D
tetradic
#3D40A2 #A23D72 #A29F3D #3DA26C
square
#3D40A2 #A23D72 #A29F3D #3DA26C
split-complementary
#3D40A2 #A26C3D #72A23D
monochromatic
#1C1D49 #2C2E76 #3D40A2 #5B5EC1 #878AD2

Accessibility & contrast

On white

8.56
#3D40A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3D40A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D40A2
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D40A2#FFFFFF#000000##FFFFFF
##3D40A21.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3d40a2;
/* rgb */ color: rgb(61, 64, 162);
/* oklch */ color: oklch(42.9% 0.155 276.3);
Tailwind
colors: {
  custom: {
    50: '#7d75be',
    500: '#3d40a2',
    950: '#000000',
  },
}
SCSS
$custom: #3d40a2;
$custom-light: #7d75be;
$custom-dark: #000000;
JSON
{
  "hex": "#3d40a2",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 238.218,
    "s": 45.291,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42921,
    "c": 0.15508,
    "h": 276.3
  },
  "luminance": 0.07268
}

Semantic roles & 50–950 ramp

primary
#3D40A2
secondary
#BCBB7E
accent
#D153D5
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3D40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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