#403A74#403A74

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

Color values

HEX#403A74
RGBrgb(64, 58, 116)
HSLhsl(246, 33%, 34%)
HSVhsv(246, 50%, 45%)
CMYKcmyk(44.8%, 50%, 0%, 54.5%)
CIE-LABlab(27.78, 18.64, -32.63)
CIE-LCHlch(27.78, 37.58, 299.73°)
OKLaboklab(38.49% 0.0259 -0.0925)
OKLCHoklch(38.49% 0.096 285.7)
XYZxyz(6.7789, 5.3768, 17.2003)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A74 #6E743A
analogous
#3A5174 #403A74 #5D3A74
triadic
#403A74 #74403A #3A7440
tetradic
#403A74 #743A51 #6E743A #3A745D
square
#403A74 #743A51 #6E743A #3A745D
split-complementary
#403A74 #745D3A #51743A
monochromatic
#131122 #29264B #403A74 #574E9D #7871B8

Accessibility & contrast

On white

10.12
#403A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403A74
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A74#FFFFFF#000000##FFFFFF
##403A741.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234376
Deuteranopia (green-blind)
#214073
Tritanopia (blue-blind)
#304651
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403a74;
/* rgb */ color: rgb(64, 58, 116);
/* oklch */ color: oklch(38.5% 0.096 285.7);
Tailwind
colors: {
  custom: {
    50: '#78709c',
    500: '#403a74',
    950: '#000000',
  },
}
SCSS
$custom: #403a74;
$custom-light: #78709c;
$custom-dark: #000000;
JSON
{
  "hex": "#403a74",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 116
  },
  "hsl": {
    "h": 246.207,
    "s": 33.333,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38486,
    "c": 0.09603,
    "h": 285.7
  },
  "luminance": 0.05377
}

Semantic roles & 50–950 ramp

primary
#403A74
secondary
#9BA168
accent
#C95EBE
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09070E
muted
#7B7A7E

Preview Lab

Preview with #403A74

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

Preview Lab → · Contrast checker → · Palette generator →

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