#403DD9#403DD9

#403DD9 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.7% C 0.228 H 274.3°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#403DD9
RGBrgb(64, 61, 217)
HSLhsl(241, 67%, 55%)
HSVhsv(241, 72%, 85%)
CMYKcmyk(70.5%, 71.9%, 0%, 14.9%)
CIE-LABlab(36.81, 50.18, -78.72)
CIE-LCHlch(36.81, 93.35, 302.52°)
OKLaboklab(47.66% 0.017 -0.2276)
OKLCHoklch(47.66% 0.228 274.3)
XYZxyz(16.3033, 9.4356, 66.5943)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DD9 #D6D93D
analogous
#3D88D9 #403DD9 #8E3DD9
triadic
#403DD9 #D9403D #3DD940
tetradic
#403DD9 #D93D88 #D6D93D #3DD98E
square
#403DD9 #D93D88 #D6D93D #3DD98E
split-complementary
#403DD9 #D98E3D #88D93D
monochromatic
#1B1982 #2624B5 #403DD9 #7270E3 #A5A3ED

Accessibility & contrast

On white

7.27
#403DD9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#403DD9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DD9
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DD9#FFFFFF#000000##FFFFFF
##403DD91.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDE
Deuteranopia (green-blind)
#004FD6
Tritanopia (blue-blind)
#006987
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #403dd9;
/* rgb */ color: rgb(64, 61, 217);
/* oklch */ color: oklch(47.7% 0.228 274.3);
Tailwind
colors: {
  custom: {
    50: '#8a74e6',
    500: '#403dd9',
    950: '#000000',
  },
}
SCSS
$custom: #403dd9;
$custom-light: #8a74e6;
$custom-dark: #000000;
JSON
{
  "hex": "#403dd9",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 217
  },
  "hsl": {
    "h": 241.154,
    "s": 67.241,
    "l": 54.51
  },
  "oklch": {
    "l": 0.47657,
    "c": 0.22827,
    "h": 274.3
  },
  "luminance": 0.09437
}

Semantic roles & 50–950 ramp

primary
#403DD9
secondary
#D9DA98
accent
#EA3EE7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #403DD9

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

Preview Lab → · Contrast checker → · Palette generator →

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