#403FD5#403FD5

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

Color values

HEX#403FD5
RGBrgb(64, 63, 213)
HSLhsl(240, 64%, 54%)
HSVhsv(240, 70%, 84%)
CMYKcmyk(70%, 70.4%, 0%, 16.5%)
CIE-LABlab(36.83, 47.77, -76.38)
CIE-LCHlch(36.83, 90.08, 302.02°)
OKLaboklab(47.56% 0.0166 -0.2208)
OKLCHoklch(47.56% 0.221 274.3)
XYZxyz(15.8981, 9.4476, 63.9236)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FD5 #D4D53F
analogous
#3F89D5 #403FD5 #8B3FD5
triadic
#403FD5 #D5403F #3FD540
tetradic
#403FD5 #D53F89 #D4D53F #3FD58B
square
#403FD5 #D53F89 #D4D53F #3FD58B
split-complementary
#403FD5 #D58B3F #89D53F
monochromatic
#1C1C7E #2727B0 #403FD5 #7271E0 #A4A3EB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##403FD5#FFFFFF#000000##FFFFFF
##403FD51.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)
#005ED9
Deuteranopia (green-blind)
#0050D2
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #403fd5;
/* rgb */ color: rgb(64, 63, 213);
/* oklch */ color: oklch(47.6% 0.221 274.3);
Tailwind
colors: {
  custom: {
    50: '#8975e3',
    500: '#403fd5',
    950: '#000000',
  },
}
SCSS
$custom: #403fd5;
$custom-light: #8975e3;
$custom-dark: #000000;
JSON
{
  "hex": "#403fd5",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 213
  },
  "hsl": {
    "h": 240.4,
    "s": 64.103,
    "l": 54.118
  },
  "oklch": {
    "l": 0.47557,
    "c": 0.22143,
    "h": 274.3
  },
  "luminance": 0.09449
}

Semantic roles & 50–950 ramp

primary
#403FD5
secondary
#D7D898
accent
#E741E6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #403FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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