#403CB5#403CB5

#403CB5 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.1% C 0.185 H 277.1°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#403CB5
RGBrgb(64, 60, 181)
HSLhsl(242, 50%, 47%)
HSVhsv(242, 67%, 71%)
CMYKcmyk(64.6%, 66.9%, 0%, 29%)
CIE-LABlab(33.26, 38.99, -63.55)
CIE-LCHlch(33.26, 74.55, 301.53°)
OKLaboklab(44.09% 0.0229 -0.1833)
OKLCHoklch(44.09% 0.185 277.1)
XYZxyz(12.0680, 7.6569, 44.5491)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CB5 #B1B53C
analogous
#3C75B5 #403CB5 #7C3CB5
triadic
#403CB5 #B5403C #3CB540
tetradic
#403CB5 #B53C75 #B1B53C #3CB57C
square
#403CB5 #B53C75 #B1B53C #3CB57C
split-complementary
#403CB5 #B57C3C #75B53C
monochromatic
#1F1E59 #302D87 #403CB5 #6663CB #9391DB

Accessibility & contrast

On white

8.30
#403CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#403CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CB5
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CB5#FFFFFF#000000##FFFFFF
##403CB51.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #403cb5;
/* rgb */ color: rgb(64, 60, 181);
/* oklch */ color: oklch(44.1% 0.185 277.1);
Tailwind
colors: {
  custom: {
    50: '#8372cc',
    500: '#403cb5',
    950: '#000000',
  },
}
SCSS
$custom: #403cb5;
$custom-light: #8372cc;
$custom-dark: #000000;
JSON
{
  "hex": "#403cb5",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 181
  },
  "hsl": {
    "h": 241.983,
    "s": 50.207,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44092,
    "c": 0.18472,
    "h": 277.1
  },
  "luminance": 0.07658
}

Semantic roles & 50–950 ramp

primary
#403CB5
secondary
#C3C687
accent
#DA4ED5
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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