#403A86#403A86

#403A86 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.123 H 282.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#403A86
RGBrgb(64, 58, 134)
HSLhsl(245, 40%, 38%)
HSVhsv(245, 57%, 53%)
CMYKcmyk(52.2%, 56.7%, 0%, 47.5%)
CIE-LABlab(29.00, 24.52, -41.97)
CIE-LCHlch(29.00, 48.61, 300.29°)
OKLaboklab(39.78% 0.0273 -0.1199)
OKLCHoklch(39.78% 0.123 282.8)
XYZxyz(7.9292, 5.8369, 23.2585)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A86 #80863A
analogous
#3A5A86 #403A86 #663A86
triadic
#403A86 #86403A #3A8640
tetradic
#403A86 #863A5A #80863A #3A8666
square
#403A86 #863A5A #80863A #3A8666
split-complementary
#403A86 #86663A #5A863A
monochromatic
#171531 #2C285B #403A86 #544CB1 #7D76C4

Accessibility & contrast

On white

9.69
#403A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#403A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A86
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A86#FFFFFF#000000##FFFFFF
##403A861.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4789
Deuteranopia (green-blind)
#034284
Tritanopia (blue-blind)
#254B5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #403a86;
/* rgb */ color: rgb(64, 58, 134);
/* oklch */ color: oklch(39.8% 0.123 282.8);
Tailwind
colors: {
  custom: {
    50: '#7b70aa',
    500: '#403a86',
    950: '#000000',
  },
}
SCSS
$custom: #403a86;
$custom-light: #7b70aa;
$custom-dark: #000000;
JSON
{
  "hex": "#403a86",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 134
  },
  "hsl": {
    "h": 244.737,
    "s": 39.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39785,
    "c": 0.12299,
    "h": 282.8
  },
  "luminance": 0.05837
}

Semantic roles & 50–950 ramp

primary
#403A86
secondary
#A8AD6F
accent
#CF58C6
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #403A86

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

Preview Lab → · Contrast checker → · Palette generator →

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