#403A85#403A85

#403A85 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.122 H 283.0°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#403A85
RGBrgb(64, 58, 133)
HSLhsl(245, 39%, 37%)
HSVhsv(245, 56%, 52%)
CMYKcmyk(51.9%, 56.4%, 0%, 47.8%)
CIE-LABlab(28.93, 24.19, -41.47)
CIE-LCHlch(28.93, 48.01, 300.26°)
OKLaboklab(39.71% 0.0273 -0.1184)
OKLCHoklch(39.71% 0.122 283)
XYZxyz(7.8598, 5.8091, 22.8929)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A85 #7F853A
analogous
#3A5A85 #403A85 #663A85
triadic
#403A85 #85403A #3A8540
tetradic
#403A85 #853A5A #7F853A #3A8566
square
#403A85 #853A5A #7F853A #3A8566
split-complementary
#403A85 #85663A #5A853A
monochromatic
#171530 #2B275A #403A85 #554DB0 #7C76C3

Accessibility & contrast

On white

9.71
#403A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#403A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A85
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A85#FFFFFF#000000##FFFFFF
##403A851.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4788
Deuteranopia (green-blind)
#064283
Tritanopia (blue-blind)
#264B59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #403a85;
/* rgb */ color: rgb(64, 58, 133);
/* oklch */ color: oklch(39.7% 0.122 283.0);
Tailwind
colors: {
  custom: {
    50: '#7a70a9',
    500: '#403a85',
    950: '#000000',
  },
}
SCSS
$custom: #403a85;
$custom-light: #7a70a9;
$custom-dark: #000000;
JSON
{
  "hex": "#403a85",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 133
  },
  "hsl": {
    "h": 244.8,
    "s": 39.267,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39709,
    "c": 0.12153,
    "h": 283
  },
  "luminance": 0.0581
}

Semantic roles & 50–950 ramp

primary
#403A85
secondary
#A8AD6E
accent
#CF59C6
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #403A85

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

Preview Lab → · Contrast checker → · Palette generator →

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