#403C62#403C62

#403C62 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.8% C 0.064 H 287.7°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#403C62
RGBrgb(64, 60, 98)
HSLhsl(246, 24%, 31%)
HSVhsv(246, 39%, 38%)
CMYKcmyk(34.7%, 38.8%, 0%, 61.6%)
CIE-LABlab(27.31, 11.69, -21.87)
CIE-LCHlch(27.31, 24.80, 298.12°)
OKLaboklab(37.79% 0.0195 -0.0611)
OKLCHoklch(37.79% 0.064 287.7)
XYZxyz(5.9342, 5.2034, 12.2446)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C62 #5E623C
analogous
#3C4B62 #403C62 #533C62
triadic
#403C62 #62403C #3C6240
tetradic
#403C62 #623C4B #5E623C #3C6253
square
#403C62 #623C4B #5E623C #3C6253
split-complementary
#403C62 #62533C #4B623C
monochromatic
#0E0E16 #27253C #403C62 #595388 #7671A8

Accessibility & contrast

On white

10.29
#403C62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#403C62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C62
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C62#FFFFFF#000000##FFFFFF
##403C621.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314164
Deuteranopia (green-blind)
#304061
Tritanopia (blue-blind)
#38434A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #403c62;
/* rgb */ color: rgb(64, 60, 98);
/* oklch */ color: oklch(37.8% 0.064 287.7);
Tailwind
colors: {
  custom: {
    50: '#76718f',
    500: '#403c62',
    950: '#000000',
  },
}
SCSS
$custom: #403c62;
$custom-light: #76718f;
$custom-dark: #000000;
JSON
{
  "hex": "#403c62",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 98
  },
  "hsl": {
    "h": 246.316,
    "s": 24.051,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37786,
    "c": 0.06414,
    "h": 287.7
  },
  "luminance": 0.05204
}

Semantic roles & 50–950 ramp

primary
#403C62
secondary
#8D9268
accent
#C167B7
background
#F7F6F8
surface
#EDECF0
border
#C8C7CB
text
#08070C
muted
#7B7A7D

Preview Lab

Preview with #403C62

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

Preview Lab → · Contrast checker → · Palette generator →

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