#403EAF#403EAF

#403EAF is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.9% C 0.174 H 277.2°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#403EAF
RGBrgb(64, 62, 175)
HSLhsl(241, 48%, 46%)
HSVhsv(241, 65%, 69%)
CMYKcmyk(63.4%, 64.6%, 0%, 31.4%)
CIE-LABlab(33.20, 35.75, -60.08)
CIE-LCHlch(33.20, 69.91, 300.76°)
OKLaboklab(43.89% 0.0219 -0.1731)
OKLCHoklch(43.89% 0.175 277.2)
XYZxyz(11.5723, 7.6295, 41.4119)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EAF #ADAF3E
analogous
#3E75AF #403EAF #793EAF
triadic
#403EAF #AF403E #3EAF40
tetradic
#403EAF #AF3E75 #ADAF3E #3EAF79
square
#403EAF #AF3E75 #ADAF3E #3EAF79
split-complementary
#403EAF #AF793E #75AF3E
monochromatic
#1F1E55 #2F2E82 #403EAF #6463C8 #9190D8

Accessibility & contrast

On white

8.31
#403EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#403EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EAF
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EAF#FFFFFF#000000##FFFFFF
##403EAF1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #403eaf;
/* rgb */ color: rgb(64, 62, 175);
/* oklch */ color: oklch(43.9% 0.174 277.2);
Tailwind
colors: {
  custom: {
    50: '#8274c8',
    500: '#403eaf',
    950: '#000000',
  },
}
SCSS
$custom: #403eaf;
$custom-light: #8274c8;
$custom-dark: #000000;
JSON
{
  "hex": "#403eaf",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 175
  },
  "hsl": {
    "h": 241.062,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.43889,
    "c": 0.1745,
    "h": 277.2
  },
  "luminance": 0.0763
}

Semantic roles & 50–950 ramp

primary
#403EAF
secondary
#C2C386
accent
#D751D5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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