#403298#403298

#403298 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.159 H 282.7°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#403298
RGBrgb(64, 50, 152)
HSLhsl(248, 50%, 40%)
HSVhsv(248, 67%, 60%)
CMYKcmyk(57.9%, 67.1%, 0%, 40.4%)
CIE-LABlab(28.48, 35.51, -53.91)
CIE-LCHlch(28.48, 64.55, 303.37°)
OKLaboklab(39.85% 0.0349 -0.155)
OKLCHoklch(39.85% 0.159 282.7)
XYZxyz(8.9207, 5.6376, 30.3178)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403298 #8A9832
analogous
#325798 #403298 #733298
triadic
#403298 #984032 #329840
tetradic
#403298 #983257 #8A9832 #329873
square
#403298 #983257 #8A9832 #329873
split-complementary
#403298 #987332 #579832
monochromatic
#19143C #2D236A #403298 #5645C2 #8073D1

Accessibility & contrast

On white

9.87
#403298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#403298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403298
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403298#FFFFFF#000000##FFFFFF
##4032981.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#114C60
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #403298;
/* rgb */ color: rgb(64, 50, 152);
/* oklch */ color: oklch(39.9% 0.159 282.7);
Tailwind
colors: {
  custom: {
    50: '#7e6bb7',
    500: '#403298',
    950: '#000000',
  },
}
SCSS
$custom: #403298;
$custom-light: #7e6bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#403298",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 152
  },
  "hsl": {
    "h": 248.235,
    "s": 50.495,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39852,
    "c": 0.15893,
    "h": 282.7
  },
  "luminance": 0.05638
}

Semantic roles & 50–950 ramp

primary
#403298
secondary
#AFB96D
accent
#DA4EC7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #403298

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

Preview Lab → · Contrast checker → · Palette generator →

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