#403D96#403D96

#403D96 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.6% C 0.142 H 279.8°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#403D96
RGBrgb(64, 61, 150)
HSLhsl(242, 42%, 41%)
HSVhsv(242, 59%, 59%)
CMYKcmyk(57.3%, 59.3%, 0%, 41.2%)
CIE-LABlab(30.95, 27.93, -48.67)
CIE-LCHlch(30.95, 56.12, 299.85°)
OKLaboklab(41.61% 0.0241 -0.1396)
OKLCHoklch(41.61% 0.142 279.8)
XYZxyz(9.2864, 6.6289, 29.6384)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D96 #93963D
analogous
#3D6796 #403D96 #6D3D96
triadic
#403D96 #96403D #3D9640
tetradic
#403D96 #963D67 #93963D #3D966D
square
#403D96 #963D67 #93963D #3D966D
split-complementary
#403D96 #966D3D #67963D
monochromatic
#1B1A3F #2D2B6A #403D96 #5956BA #8481CC

Accessibility & contrast

On white

9.03
#403D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#403D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D96
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D96#FFFFFF#000000##FFFFFF
##403D961.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#125263
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403d96;
/* rgb */ color: rgb(64, 61, 150);
/* oklch */ color: oklch(41.6% 0.142 279.8);
Tailwind
colors: {
  custom: {
    50: '#7d72b6',
    500: '#403d96',
    950: '#000000',
  },
}
SCSS
$custom: #403d96;
$custom-light: #7d72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#403d96",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 150
  },
  "hsl": {
    "h": 242.022,
    "s": 42.18,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41606,
    "c": 0.14167,
    "h": 279.8
  },
  "luminance": 0.06629
}

Semantic roles & 50–950 ramp

primary
#403D96
secondary
#B4B679
accent
#D256CE
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403D96

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

Preview Lab → · Contrast checker → · Palette generator →

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