#403DA4#403DA4

#403DA4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.8% C 0.161 H 278.4°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#403DA4
RGBrgb(64, 61, 164)
HSLhsl(242, 46%, 44%)
HSVhsv(242, 63%, 64%)
CMYKcmyk(61%, 62.8%, 0%, 35.7%)
CIE-LABlab(32.05, 32.67, -55.37)
CIE-LCHlch(32.05, 64.29, 300.54°)
OKLaboklab(42.76% 0.0236 -0.1593)
OKLCHoklch(42.76% 0.161 278.4)
XYZxyz(10.4818, 7.1070, 35.9342)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DA4 #A1A43D
analogous
#3D6EA4 #403DA4 #743DA4
triadic
#403DA4 #A4403D #3DA440
tetradic
#403DA4 #A43D6E #A1A43D #3DA474
square
#403DA4 #A43D6E #A1A43D #3DA474
split-complementary
#403DA4 #A4743D #6EA43D
monochromatic
#1D1C4B #2F2C77 #403DA4 #5F5CC2 #8B88D3

Accessibility & contrast

On white

8.67
#403DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#403DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DA4
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DA4#FFFFFF#000000##FFFFFF
##403DA41.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403da4;
/* rgb */ color: rgb(64, 61, 164);
/* oklch */ color: oklch(42.8% 0.161 278.4);
Tailwind
colors: {
  custom: {
    50: '#8073c0',
    500: '#403da4',
    950: '#000000',
  },
}
SCSS
$custom: #403da4;
$custom-light: #8073c0;
$custom-dark: #000000;
JSON
{
  "hex": "#403da4",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 164
  },
  "hsl": {
    "h": 241.748,
    "s": 45.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42764,
    "c": 0.16102,
    "h": 278.4
  },
  "luminance": 0.07108
}

Semantic roles & 50–950 ramp

primary
#403DA4
secondary
#BCBD7F
accent
#D552D2
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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