#403697#403697

#403697 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.152 H 281.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#403697
RGBrgb(64, 54, 151)
HSLhsl(246, 47%, 40%)
HSVhsv(246, 64%, 59%)
CMYKcmyk(57.6%, 64.2%, 0%, 40.8%)
CIE-LABlab(29.32, 32.72, -51.93)
CIE-LCHlch(29.32, 61.38, 302.21°)
OKLaboklab(40.43% 0.0312 -0.1492)
OKLCHoklch(40.43% 0.152 281.8)
XYZxyz(9.0177, 5.9621, 29.9478)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403697 #8D9736
analogous
#365C97 #403697 #713697
triadic
#403697 #974036 #369740
tetradic
#403697 #97365C #8D9736 #369771
square
#403697 #97365C #8D9736 #369771
split-complementary
#403697 #977136 #5C9736
monochromatic
#1A163D #2D266A #403697 #574BBF #8178CF

Accessibility & contrast

On white

9.58
#403697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#403697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403697
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403697#FFFFFF#000000##FFFFFF
##4036971.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#124E61
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #403697;
/* rgb */ color: rgb(64, 54, 151);
/* oklch */ color: oklch(40.4% 0.152 281.8);
Tailwind
colors: {
  custom: {
    50: '#7e6eb6',
    500: '#403697',
    950: '#000000',
  },
}
SCSS
$custom: #403697;
$custom-light: #7e6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#403697",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 151
  },
  "hsl": {
    "h": 246.186,
    "s": 47.317,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40434,
    "c": 0.15245,
    "h": 281.8
  },
  "luminance": 0.05963
}

Semantic roles & 50–950 ramp

primary
#403697
secondary
#B0B871
accent
#D751C9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #403697

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

Preview Lab → · Contrast checker → · Palette generator →

#403697 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva