#403A79#403A79

#403A79 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.8% C 0.104 H 284.8°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#403A79
RGBrgb(64, 58, 121)
HSLhsl(246, 35%, 35%)
HSVhsv(246, 52%, 47%)
CMYKcmyk(47.1%, 52.1%, 0%, 52.5%)
CIE-LABlab(28.10, 20.25, -35.27)
CIE-LCHlch(28.10, 40.67, 299.86°)
OKLaboklab(38.83% 0.0265 -0.1002)
OKLCHoklch(38.83% 0.104 284.8)
XYZxyz(7.0776, 5.4963, 18.7734)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A79 #73793A
analogous
#3A5479 #403A79 #5F3A79
triadic
#403A79 #79403A #3A7940
tetradic
#403A79 #793A54 #73793A #3A795F
square
#403A79 #793A54 #73793A #3A795F
split-complementary
#403A79 #795F3A #54793A
monochromatic
#141226 #2A2650 #403A79 #564EA2 #7972BB

Accessibility & contrast

On white

10.00
#403A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#403A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A79
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A79#FFFFFF#000000##FFFFFF
##403A791.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E447B
Deuteranopia (green-blind)
#1C4078
Tritanopia (blue-blind)
#2E4754
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403a79;
/* rgb */ color: rgb(64, 58, 121);
/* oklch */ color: oklch(38.8% 0.104 284.8);
Tailwind
colors: {
  custom: {
    50: '#7970a0',
    500: '#403a79',
    950: '#000000',
  },
}
SCSS
$custom: #403a79;
$custom-light: #7970a0;
$custom-dark: #000000;
JSON
{
  "hex": "#403a79",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 121
  },
  "hsl": {
    "h": 245.714,
    "s": 35.196,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38832,
    "c": 0.10367,
    "h": 284.8
  },
  "luminance": 0.05497
}

Semantic roles & 50–950 ramp

primary
#403A79
secondary
#9FA56A
accent
#CB5DC1
background
#F7F6F9
surface
#EEECF2
border
#C9C7CC
text
#09070F
muted
#7B7A7E

Preview Lab

Preview with #403A79

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

Preview Lab → · Contrast checker → · Palette generator →

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