#403DA5#403DA5

#403DA5 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.9% C 0.162 H 278.3°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#403DA5
RGBrgb(64, 61, 165)
HSLhsl(242, 46%, 44%)
HSVhsv(242, 63%, 65%)
CMYKcmyk(61.2%, 63%, 0%, 35.3%)
CIE-LABlab(32.13, 33.00, -55.84)
CIE-LCHlch(32.13, 64.86, 300.59°)
OKLaboklab(42.85% 0.0235 -0.1607)
OKLCHoklch(42.85% 0.162 278.3)
XYZxyz(10.5725, 7.1433, 36.4117)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DA5 #A2A53D
analogous
#3D6EA5 #403DA5 #743DA5
triadic
#403DA5 #A5403D #3DA540
tetradic
#403DA5 #A53D6E #A2A53D #3DA574
square
#403DA5 #A53D6E #A2A53D #3DA574
split-complementary
#403DA5 #A5743D #6EA53D
monochromatic
#1D1C4C #2F2C78 #403DA5 #5F5CC3 #8B89D3

Accessibility & contrast

On white

8.65
#403DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#403DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DA5
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DA5#FFFFFF#000000##FFFFFF
##403DA51.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403da5;
/* rgb */ color: rgb(64, 61, 165);
/* oklch */ color: oklch(42.9% 0.162 278.3);
Tailwind
colors: {
  custom: {
    50: '#8073c1',
    500: '#403da5',
    950: '#000000',
  },
}
SCSS
$custom: #403da5;
$custom-light: #8073c1;
$custom-dark: #000000;
JSON
{
  "hex": "#403da5",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 165
  },
  "hsl": {
    "h": 241.731,
    "s": 46.018,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4285,
    "c": 0.16238,
    "h": 278.3
  },
  "luminance": 0.07144
}

Semantic roles & 50–950 ramp

primary
#403DA5
secondary
#BCBE80
accent
#D652D2
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403DA5

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

Preview Lab → · Contrast checker → · Palette generator →

#403DA5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva