#403B71#403B71

#403B71 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.5% C 0.090 H 285.6°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#403B71
RGBrgb(64, 59, 113)
HSLhsl(246, 31%, 34%)
HSVhsv(246, 48%, 44%)
CMYKcmyk(43.4%, 47.8%, 0%, 55.7%)
CIE-LABlab(27.87, 17.01, -30.58)
CIE-LCHlch(27.87, 34.99, 299.08°)
OKLaboklab(38.49% 0.0241 -0.0865)
OKLCHoklch(38.49% 0.09 285.6)
XYZxyz(6.6581, 5.4099, 16.3130)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403B71 #6C713B
analogous
#3B5171 #403B71 #5B3B71
triadic
#403B71 #71403B #3B7140
tetradic
#403B71 #713B51 #6C713B #3B715B
square
#403B71 #713B51 #6C713B #3B715B
split-complementary
#403B71 #715B3B #51713B
monochromatic
#121121 #292649 #403B71 #575099 #7871B5

Accessibility & contrast

On white

10.09
#403B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#403B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403B71
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403B71#FFFFFF#000000##FFFFFF
##403B711.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274373
Deuteranopia (green-blind)
#254070
Tritanopia (blue-blind)
#324650
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403b71;
/* rgb */ color: rgb(64, 59, 113);
/* oklch */ color: oklch(38.5% 0.090 285.6);
Tailwind
colors: {
  custom: {
    50: '#78719a',
    500: '#403b71',
    950: '#000000',
  },
}
SCSS
$custom: #403b71;
$custom-light: #78719a;
$custom-dark: #000000;
JSON
{
  "hex": "#403b71",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 113
  },
  "hsl": {
    "h": 245.556,
    "s": 31.395,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38493,
    "c": 0.08977,
    "h": 285.6
  },
  "luminance": 0.0541
}

Semantic roles & 50–950 ramp

primary
#403B71
secondary
#9A9F69
accent
#C860BE
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09070E
muted
#7B7A7E

Preview Lab

Preview with #403B71

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

Preview Lab → · Contrast checker → · Palette generator →

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