#403A80#403A80

#403A80 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.3% C 0.114 H 283.7°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#403A80
RGBrgb(64, 58, 128)
HSLhsl(245, 38%, 36%)
HSVhsv(245, 55%, 50%)
CMYKcmyk(50%, 54.7%, 0%, 49.8%)
CIE-LABlab(28.58, 22.54, -38.91)
CIE-LCHlch(28.58, 44.97, 300.08°)
OKLaboklab(39.34% 0.027 -0.1109)
OKLCHoklch(39.34% 0.114 283.7)
XYZxyz(7.5225, 5.6742, 21.1168)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A80 #7A803A
analogous
#3A5780 #403A80 #633A80
triadic
#403A80 #80403A #3A8040
tetradic
#403A80 #803A57 #7A803A #3A8063
square
#403A80 #803A57 #7A803A #3A8063
split-complementary
#403A80 #80633A #57803A
monochromatic
#16142C #2B2756 #403A80 #554DAA #7B74C0

Accessibility & contrast

On white

9.84
#403A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#403A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A80
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A80#FFFFFF#000000##FFFFFF
##403A801.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164682
Deuteranopia (green-blind)
#12417E
Tritanopia (blue-blind)
#294957
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #403a80;
/* rgb */ color: rgb(64, 58, 128);
/* oklch */ color: oklch(39.3% 0.114 283.7);
Tailwind
colors: {
  custom: {
    50: '#7a70a5',
    500: '#403a80',
    950: '#000000',
  },
}
SCSS
$custom: #403a80;
$custom-light: #7a70a5;
$custom-dark: #000000;
JSON
{
  "hex": "#403a80",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 128
  },
  "hsl": {
    "h": 245.143,
    "s": 37.634,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39336,
    "c": 0.11417,
    "h": 283.7
  },
  "luminance": 0.05675
}

Semantic roles & 50–950 ramp

primary
#403A80
secondary
#A4A96C
accent
#CE5AC4
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #403A80

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

Preview Lab → · Contrast checker → · Palette generator →

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