#403CB7#403CB7

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

Color values

HEX#403CB7
RGBrgb(64, 60, 183)
HSLhsl(242, 51%, 48%)
HSVhsv(242, 67%, 72%)
CMYKcmyk(65%, 67.2%, 0%, 28.2%)
CIE-LABlab(33.43, 39.65, -64.44)
CIE-LCHlch(33.43, 75.67, 301.60°)
OKLaboklab(44.27% 0.0227 -0.1859)
OKLCHoklch(44.27% 0.187 277)
XYZxyz(12.2747, 7.7396, 45.6376)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CB7 #B3B73C
analogous
#3C76B7 #403CB7 #7D3CB7
triadic
#403CB7 #B7403C #3CB740
tetradic
#403CB7 #B73C76 #B3B73C #3CB77D
square
#403CB7 #B73C76 #B3B73C #3CB77D
split-complementary
#403CB7 #B77D3C #76B73C
monochromatic
#201E5B #302D89 #403CB7 #6764CC #9492DB

Accessibility & contrast

On white

8.24
#403CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#403CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CB7
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CB7#FFFFFF#000000##FFFFFF
##403CB71.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403cb7;
/* rgb */ color: rgb(64, 60, 183);
/* oklch */ color: oklch(44.3% 0.187 277.0);
Tailwind
colors: {
  custom: {
    50: '#8372ce',
    500: '#403cb7',
    950: '#000000',
  },
}
SCSS
$custom: #403cb7;
$custom-light: #8372ce;
$custom-dark: #000000;
JSON
{
  "hex": "#403cb7",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 183
  },
  "hsl": {
    "h": 241.951,
    "s": 50.617,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44274,
    "c": 0.1873,
    "h": 277
  },
  "luminance": 0.07741
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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