#403FB9#403FB9

#403FB9 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.9% C 0.186 H 276.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#403FB9
RGBrgb(64, 63, 185)
HSLhsl(240, 49%, 49%)
HSVhsv(240, 66%, 73%)
CMYKcmyk(65.4%, 65.9%, 0%, 27.5%)
CIE-LABlab(34.29, 38.50, -64.23)
CIE-LCHlch(34.29, 74.89, 300.94°)
OKLaboklab(44.95% 0.0202 -0.1853)
OKLCHoklch(44.95% 0.186 276.2)
XYZxyz(12.6460, 8.1467, 46.7956)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FB9 #B8B93F
analogous
#3F7BB9 #403FB9 #7D3FB9
triadic
#403FB9 #B9403F #3FB940
tetradic
#403FB9 #B93F7B #B8B93F #3FB97D
square
#403FB9 #B93F7B #B8B93F #3FB97D
split-complementary
#403FB9 #B97D3F #7BB93F
monochromatic
#20205E #302F8B #403FB9 #6A69CC #9797DC

Accessibility & contrast

On white

7.99
#403FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#403FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FB9
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FB9#FFFFFF#000000##FFFFFF
##403FB91.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#004BB7
Tritanopia (blue-blind)
#005F76
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #403fb9;
/* rgb */ color: rgb(64, 63, 185);
/* oklch */ color: oklch(44.9% 0.186 276.2);
Tailwind
colors: {
  custom: {
    50: '#8375cf',
    500: '#403fb9',
    950: '#000000',
  },
}
SCSS
$custom: #403fb9;
$custom-light: #8375cf;
$custom-dark: #000000;
JSON
{
  "hex": "#403fb9",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 185
  },
  "hsl": {
    "h": 240.492,
    "s": 49.194,
    "l": 48.627
  },
  "oklch": {
    "l": 0.44946,
    "c": 0.18638,
    "h": 276.2
  },
  "luminance": 0.08148
}

Semantic roles & 50–950 ramp

primary
#403FB9
secondary
#C7C78D
accent
#D94FD8
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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