#403CB2#403CB2

#403CB2 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.8% C 0.181 H 277.4°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#403CB2
RGBrgb(64, 60, 178)
HSLhsl(242, 50%, 47%)
HSVhsv(242, 66%, 70%)
CMYKcmyk(64%, 66.3%, 0%, 30.2%)
CIE-LABlab(33.00, 37.99, -62.20)
CIE-LCHlch(33.00, 72.88, 301.41°)
OKLaboklab(43.82% 0.0232 -0.1793)
OKLCHoklch(43.82% 0.181 277.4)
XYZxyz(11.7635, 7.5351, 42.9454)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CB2 #AEB23C
analogous
#3C73B2 #403CB2 #7B3CB2
triadic
#403CB2 #B2403C #3CB240
tetradic
#403CB2 #B23C73 #AEB23C #3CB27B
square
#403CB2 #B23C73 #AEB23C #3CB27B
split-complementary
#403CB2 #B27B3C #73B23C
monochromatic
#1F1D56 #302D84 #403CB2 #6561CA #928FD9

Accessibility & contrast

On white

8.38
#403CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403CB2
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CB2#FFFFFF#000000##FFFFFF
##403CB21.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #403cb2;
/* rgb */ color: rgb(64, 60, 178);
/* oklch */ color: oklch(43.8% 0.181 277.4);
Tailwind
colors: {
  custom: {
    50: '#8272ca',
    500: '#403cb2',
    950: '#000000',
  },
}
SCSS
$custom: #403cb2;
$custom-light: #8272ca;
$custom-dark: #000000;
JSON
{
  "hex": "#403cb2",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 178
  },
  "hsl": {
    "h": 242.034,
    "s": 49.58,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4382,
    "c": 0.18084,
    "h": 277.4
  },
  "luminance": 0.07536
}

Semantic roles & 50–950 ramp

primary
#403CB2
secondary
#C2C486
accent
#D94FD4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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