#403397#403397

#403397 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.9% C 0.156 H 282.6°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#403397
RGBrgb(64, 51, 151)
HSLhsl(248, 50%, 40%)
HSVhsv(248, 66%, 59%)
CMYKcmyk(57.6%, 66.2%, 0%, 40.8%)
CIE-LABlab(28.62, 34.57, -53.07)
CIE-LCHlch(28.62, 63.34, 303.08°)
OKLaboklab(39.93% 0.0341 -0.1526)
OKLCHoklch(39.93% 0.156 282.6)
XYZxyz(8.8824, 5.6914, 29.9027)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403397 #8A9733
analogous
#335897 #403397 #723397
triadic
#403397 #974033 #339740
tetradic
#403397 #973358 #8A9733 #339772
square
#403397 #973358 #8A9733 #339772
split-complementary
#403397 #977233 #589733
monochromatic
#19143C #2D2469 #403397 #5647C1 #8074D0

Accessibility & contrast

On white

9.82
#403397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#403397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403397
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403397#FFFFFF#000000##FFFFFF
##4033971.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#134C60
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #403397;
/* rgb */ color: rgb(64, 51, 151);
/* oklch */ color: oklch(39.9% 0.156 282.6);
Tailwind
colors: {
  custom: {
    50: '#7e6bb6',
    500: '#403397',
    950: '#000000',
  },
}
SCSS
$custom: #403397;
$custom-light: #7e6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#403397",
  "rgb": {
    "r": 64,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 247.8,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39927,
    "c": 0.15634,
    "h": 282.6
  },
  "luminance": 0.05692
}

Semantic roles & 50–950 ramp

primary
#403397
secondary
#AFB86D
accent
#D94FC7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #403397

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

Preview Lab → · Contrast checker → · Palette generator →

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