#403DA8#403DA8

#403DA8 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.166 H 278.0°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#403DA8
RGBrgb(64, 61, 168)
HSLhsl(242, 47%, 45%)
HSVhsv(242, 64%, 66%)
CMYKcmyk(61.9%, 63.7%, 0%, 34.1%)
CIE-LABlab(32.38, 34.01, -57.24)
CIE-LCHlch(32.38, 66.58, 300.72°)
OKLaboklab(43.11% 0.0233 -0.1648)
OKLCHoklch(43.11% 0.166 278)
XYZxyz(10.8487, 7.2538, 37.8666)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DA8 #A5A83D
analogous
#3D70A8 #403DA8 #753DA8
triadic
#403DA8 #A8403D #3DA840
tetradic
#403DA8 #A83D70 #A5A83D #3DA875
square
#403DA8 #A83D70 #A5A83D #3DA875
split-complementary
#403DA8 #A8753D #70A83D
monochromatic
#1E1C4E #2F2D7B #403DA8 #615EC4 #8D8BD5

Accessibility & contrast

On white

8.57
#403DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#403DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DA8
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DA8#FFFFFF#000000##FFFFFF
##403DA81.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403da8;
/* rgb */ color: rgb(64, 61, 168);
/* oklch */ color: oklch(43.1% 0.166 278.0);
Tailwind
colors: {
  custom: {
    50: '#8073c3',
    500: '#403da8',
    950: '#000000',
  },
}
SCSS
$custom: #403da8;
$custom-light: #8073c3;
$custom-dark: #000000;
JSON
{
  "hex": "#403da8",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 168
  },
  "hsl": {
    "h": 241.682,
    "s": 46.725,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43107,
    "c": 0.16642,
    "h": 278
  },
  "luminance": 0.07255
}

Semantic roles & 50–950 ramp

primary
#403DA8
secondary
#BEBF81
accent
#D651D3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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