#403CAF#403CAF

#403CAF is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.6% C 0.177 H 277.6°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#403CAF
RGBrgb(64, 60, 175)
HSLhsl(242, 49%, 46%)
HSVhsv(242, 66%, 69%)
CMYKcmyk(63.4%, 65.7%, 0%, 31.4%)
CIE-LABlab(32.74, 36.99, -60.84)
CIE-LCHlch(32.74, 71.20, 301.30°)
OKLaboklab(43.55% 0.0236 -0.1753)
OKLCHoklch(43.55% 0.177 277.6)
XYZxyz(11.4656, 7.4159, 41.3763)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CAF #ABAF3C
analogous
#3C71AF #403CAF #793CAF
triadic
#403CAF #AF403C #3CAF40
tetradic
#403CAF #AF3C71 #ABAF3C #3CAF79
square
#403CAF #AF3C71 #ABAF3C #3CAF79
split-complementary
#403CAF #AF793C #71AF3C
monochromatic
#1F1D54 #2F2C81 #403CAF #6360C8 #908DD8

Accessibility & contrast

On white

8.46
#403CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#403CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CAF
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CAF#FFFFFF#000000##FFFFFF
##403CAF1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403caf;
/* rgb */ color: rgb(64, 60, 175);
/* oklch */ color: oklch(43.6% 0.177 277.6);
Tailwind
colors: {
  custom: {
    50: '#8272c8',
    500: '#403caf',
    950: '#000000',
  },
}
SCSS
$custom: #403caf;
$custom-light: #8272c8;
$custom-dark: #000000;
JSON
{
  "hex": "#403caf",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 175
  },
  "hsl": {
    "h": 242.087,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43552,
    "c": 0.17692,
    "h": 277.6
  },
  "luminance": 0.07417
}

Semantic roles & 50–950 ramp

primary
#403CAF
secondary
#C1C384
accent
#D84FD4
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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