#403AAF#403AAF

#403AAF is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.2% C 0.179 H 278.1°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#403AAF
RGBrgb(64, 58, 175)
HSLhsl(243, 50%, 46%)
HSVhsv(243, 67%, 69%)
CMYKcmyk(63.4%, 66.9%, 0%, 31.4%)
CIE-LABlab(32.28, 38.20, -61.58)
CIE-LCHlch(32.28, 72.47, 301.82°)
OKLaboklab(43.22% 0.0252 -0.1775)
OKLCHoklch(43.22% 0.179 278.1)
XYZxyz(11.3628, 7.2103, 41.3421)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403AAF #A9AF3A
analogous
#3A6EAF #403AAF #7A3AAF
triadic
#403AAF #AF403A #3AAF40
tetradic
#403AAF #AF3A6E #A9AF3A #3AAF7A
square
#403AAF #AF3A6E #A9AF3A #3AAF7A
split-complementary
#403AAF #AF7A3A #6EAF3A
monochromatic
#1E1C53 #2F2B81 #403AAF #625DC9 #8F8BD9

Accessibility & contrast

On white

8.60
#403AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#403AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403AAF
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403AAF#FFFFFF#000000##FFFFFF
##403AAF1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403aaf;
/* rgb */ color: rgb(64, 58, 175);
/* oklch */ color: oklch(43.2% 0.179 278.1);
Tailwind
colors: {
  custom: {
    50: '#8271c8',
    500: '#403aaf',
    950: '#000000',
  },
}
SCSS
$custom: #403aaf;
$custom-light: #8271c8;
$custom-dark: #000000;
JSON
{
  "hex": "#403aaf",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 243.077,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43222,
    "c": 0.17931,
    "h": 278.1
  },
  "luminance": 0.07211
}

Semantic roles & 50–950 ramp

primary
#403AAF
secondary
#C0C382
accent
#DA4ED3
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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