#403CAB#403CAB

#403CAB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.2% C 0.172 H 278.0°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#403CAB
RGBrgb(64, 60, 171)
HSLhsl(242, 48%, 45%)
HSVhsv(242, 65%, 67%)
CMYKcmyk(62.6%, 64.9%, 0%, 32.9%)
CIE-LABlab(32.39, 35.65, -59.01)
CIE-LCHlch(32.39, 68.94, 301.14°)
OKLaboklab(43.2% 0.0239 -0.17)
OKLCHoklch(43.2% 0.172 278)
XYZxyz(11.0785, 7.2611, 39.3379)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CAB #A7AB3C
analogous
#3C70AB #403CAB #773CAB
triadic
#403CAB #AB403C #3CAB40
tetradic
#403CAB #AB3C70 #A7AB3C #3CAB77
square
#403CAB #AB3C70 #A7AB3C #3CAB77
split-complementary
#403CAB #AB773C #70AB3C
monochromatic
#1E1C50 #2F2C7E #403CAB #625EC6 #8E8BD6

Accessibility & contrast

On white

8.56
#403CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#403CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CAB
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CAB#FFFFFF#000000##FFFFFF
##403CAB1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403cab;
/* rgb */ color: rgb(64, 60, 171);
/* oklch */ color: oklch(43.2% 0.172 278.0);
Tailwind
colors: {
  custom: {
    50: '#8172c5',
    500: '#403cab',
    950: '#000000',
  },
}
SCSS
$custom: #403cab;
$custom-light: #8172c5;
$custom-dark: #000000;
JSON
{
  "hex": "#403cab",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 171
  },
  "hsl": {
    "h": 242.162,
    "s": 48.052,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43197,
    "c": 0.17166,
    "h": 278
  },
  "luminance": 0.07262
}

Semantic roles & 50–950 ramp

primary
#403CAB
secondary
#BFC182
accent
#D850D3
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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