#403BB5#403BB5

#403BB5 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.9% C 0.186 H 277.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#403BB5
RGBrgb(64, 59, 181)
HSLhsl(242, 51%, 47%)
HSVhsv(242, 67%, 71%)
CMYKcmyk(64.6%, 67.4%, 0%, 29%)
CIE-LABlab(33.03, 39.59, -63.91)
CIE-LCHlch(33.03, 75.18, 301.77°)
OKLaboklab(43.93% 0.0237 -0.1844)
OKLCHoklch(43.93% 0.186 277.3)
XYZxyz(12.0161, 7.5531, 44.5318)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BB5 #B0B53B
analogous
#3B73B5 #403BB5 #7D3BB5
triadic
#403BB5 #B5403B #3BB540
tetradic
#403BB5 #B53B73 #B0B53B #3BB57D
square
#403BB5 #B53B73 #B0B53B #3BB57D
split-complementary
#403BB5 #B57D3B #73B53B
monochromatic
#1F1D59 #302C87 #403BB5 #6662CC #9390DB

Accessibility & contrast

On white

8.36
#403BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#403BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BB5
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BB5#FFFFFF#000000##FFFFFF
##403BB51.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403bb5;
/* rgb */ color: rgb(64, 59, 181);
/* oklch */ color: oklch(43.9% 0.186 277.3);
Tailwind
colors: {
  custom: {
    50: '#8372cc',
    500: '#403bb5',
    950: '#000000',
  },
}
SCSS
$custom: #403bb5;
$custom-light: #8372cc;
$custom-dark: #000000;
JSON
{
  "hex": "#403bb5",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 181
  },
  "hsl": {
    "h": 242.459,
    "s": 50.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4393,
    "c": 0.18588,
    "h": 277.3
  },
  "luminance": 0.07554
}

Semantic roles & 50–950 ramp

primary
#403BB5
secondary
#C3C686
accent
#DA4DD5
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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