#403DA7#403DA7

#403DA7 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.0% C 0.165 H 278.1°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#403DA7
RGBrgb(64, 61, 167)
HSLhsl(242, 46%, 45%)
HSVhsv(242, 63%, 65%)
CMYKcmyk(61.7%, 63.5%, 0%, 34.5%)
CIE-LABlab(32.30, 33.68, -56.77)
CIE-LCHlch(32.30, 66.01, 300.68°)
OKLaboklab(43.02% 0.0234 -0.1634)
OKLCHoklch(43.02% 0.165 278.1)
XYZxyz(10.7559, 7.2167, 37.3779)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DA7 #A4A73D
analogous
#3D6FA7 #403DA7 #753DA7
triadic
#403DA7 #A7403D #3DA740
tetradic
#403DA7 #A73D6F #A4A73D #3DA775
square
#403DA7 #A73D6F #A4A73D #3DA775
split-complementary
#403DA7 #A7753D #6FA73D
monochromatic
#1E1C4D #2F2D7A #403DA7 #605DC4 #8C8AD4

Accessibility & contrast

On white

8.59
#403DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#403DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DA7
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DA7#FFFFFF#000000##FFFFFF
##403DA71.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0048A5
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403da7;
/* rgb */ color: rgb(64, 61, 167);
/* oklch */ color: oklch(43.0% 0.165 278.1);
Tailwind
colors: {
  custom: {
    50: '#8073c2',
    500: '#403da7',
    950: '#000000',
  },
}
SCSS
$custom: #403da7;
$custom-light: #8073c2;
$custom-dark: #000000;
JSON
{
  "hex": "#403da7",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 167
  },
  "hsl": {
    "h": 241.698,
    "s": 46.491,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43021,
    "c": 0.16507,
    "h": 278.1
  },
  "luminance": 0.07217
}

Semantic roles & 50–950 ramp

primary
#403DA7
secondary
#BDBF81
accent
#D652D2
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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