#403297#403297

#403297 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.8% C 0.158 H 282.8°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#403297
RGBrgb(64, 50, 151)
HSLhsl(248, 50%, 39%)
HSVhsv(248, 67%, 59%)
CMYKcmyk(57.6%, 66.9%, 0%, 40.8%)
CIE-LABlab(28.39, 35.18, -53.44)
CIE-LCHlch(28.39, 63.98, 303.36°)
OKLaboklab(39.76% 0.035 -0.1537)
OKLCHoklch(39.76% 0.158 282.8)
XYZxyz(8.8391, 5.6050, 29.8883)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403297 #899732
analogous
#325797 #403297 #733297
triadic
#403297 #974032 #329740
tetradic
#403297 #973257 #899732 #329773
square
#403297 #973257 #899732 #329773
split-complementary
#403297 #977332 #579732
monochromatic
#19143B #2D2369 #403297 #5645C1 #8073D1

Accessibility & contrast

On white

9.90
#403297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#403297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403297
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403297#FFFFFF#000000##FFFFFF
##4032971.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#134C60
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #403297;
/* rgb */ color: rgb(64, 50, 151);
/* oklch */ color: oklch(39.8% 0.158 282.8);
Tailwind
colors: {
  custom: {
    50: '#7e6bb6',
    500: '#403297',
    950: '#000000',
  },
}
SCSS
$custom: #403297;
$custom-light: #7e6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#403297",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 151
  },
  "hsl": {
    "h": 248.317,
    "s": 50.249,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39763,
    "c": 0.1576,
    "h": 282.8
  },
  "luminance": 0.05606
}

Semantic roles & 50–950 ramp

primary
#403297
secondary
#AEB96C
accent
#DA4EC6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #403297

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

Preview Lab → · Contrast checker → · Palette generator →

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