#403CB6#403CB6

#403CB6 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.2% C 0.186 H 277.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#403CB6
RGBrgb(64, 60, 182)
HSLhsl(242, 50%, 47%)
HSVhsv(242, 67%, 71%)
CMYKcmyk(64.8%, 67%, 0%, 28.6%)
CIE-LABlab(33.35, 39.32, -64.00)
CIE-LCHlch(33.35, 75.11, 301.57°)
OKLaboklab(44.18% 0.0228 -0.1846)
OKLCHoklch(44.18% 0.186 277)
XYZxyz(12.1710, 7.6981, 45.0914)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CB6 #B2B63C
analogous
#3C75B6 #403CB6 #7D3CB6
triadic
#403CB6 #B6403C #3CB640
tetradic
#403CB6 #B63C75 #B2B63C #3CB67D
square
#403CB6 #B63C75 #B2B63C #3CB67D
split-complementary
#403CB6 #B67D3C #75B63C
monochromatic
#201E5A #302D88 #403CB6 #6763CC #9491DB

Accessibility & contrast

On white

8.27
#403CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#403CB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CB6
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CB6#FFFFFF#000000##FFFFFF
##403CB61.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #403cb6;
/* rgb */ color: rgb(64, 60, 182);
/* oklch */ color: oklch(44.2% 0.186 277.0);
Tailwind
colors: {
  custom: {
    50: '#8372cd',
    500: '#403cb6',
    950: '#000000',
  },
}
SCSS
$custom: #403cb6;
$custom-light: #8372cd;
$custom-dark: #000000;
JSON
{
  "hex": "#403cb6",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 182
  },
  "hsl": {
    "h": 241.967,
    "s": 50.413,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44183,
    "c": 0.18601,
    "h": 277
  },
  "luminance": 0.07699
}

Semantic roles & 50–950 ramp

primary
#403CB6
secondary
#C4C688
accent
#DA4ED5
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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