#403CB1#403CB1

#403CB1 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.7% C 0.180 H 277.5°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#403CB1
RGBrgb(64, 60, 177)
HSLhsl(242, 49%, 46%)
HSVhsv(242, 66%, 69%)
CMYKcmyk(63.8%, 66.1%, 0%, 30.6%)
CIE-LABlab(32.91, 37.65, -61.75)
CIE-LCHlch(32.91, 72.32, 301.38°)
OKLaboklab(43.73% 0.0233 -0.178)
OKLCHoklch(43.73% 0.18 277.5)
XYZxyz(11.6635, 7.4951, 42.4185)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CB1 #ADB13C
analogous
#3C73B1 #403CB1 #7B3CB1
triadic
#403CB1 #B1403C #3CB140
tetradic
#403CB1 #B13C73 #ADB13C #3CB17B
square
#403CB1 #B13C73 #ADB13C #3CB17B
split-complementary
#403CB1 #B17B3C #73B13C
monochromatic
#1F1D56 #2F2D83 #403CB1 #6461C9 #918FD9

Accessibility & contrast

On white

8.40
#403CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#403CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CB1
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CB1#FFFFFF#000000##FFFFFF
##403CB11.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403cb1;
/* rgb */ color: rgb(64, 60, 177);
/* oklch */ color: oklch(43.7% 0.180 277.5);
Tailwind
colors: {
  custom: {
    50: '#8272c9',
    500: '#403cb1',
    950: '#000000',
  },
}
SCSS
$custom: #403cb1;
$custom-light: #8272c9;
$custom-dark: #000000;
JSON
{
  "hex": "#403cb1",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 177
  },
  "hsl": {
    "h": 242.051,
    "s": 49.367,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4373,
    "c": 0.17953,
    "h": 277.5
  },
  "luminance": 0.07496
}

Semantic roles & 50–950 ramp

primary
#403CB1
secondary
#C2C485
accent
#D94FD4
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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