#403299#403299

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

Color values

HEX#403299
RGBrgb(64, 50, 153)
HSLhsl(248, 51%, 40%)
HSVhsv(248, 67%, 60%)
CMYKcmyk(58.2%, 67.3%, 0%, 40%)
CIE-LABlab(28.57, 35.83, -54.38)
CIE-LCHlch(28.57, 65.12, 303.38°)
OKLaboklab(39.94% 0.0348 -0.1564)
OKLCHoklch(39.94% 0.16 282.5)
XYZxyz(9.0029, 5.6705, 30.7509)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403299 #8B9932
analogous
#325899 #403299 #733299
triadic
#403299 #994032 #329940
tetradic
#403299 #993258 #8B9932 #329973
square
#403299 #993258 #8B9932 #329973
split-complementary
#403299 #997332 #589932
monochromatic
#19143D #2D236B #403299 #5746C2 #8174D2

Accessibility & contrast

On white

9.84
#403299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403299
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403299#FFFFFF#000000##FFFFFF
##4032991.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#0F4C61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #403299;
/* rgb */ color: rgb(64, 50, 153);
/* oklch */ color: oklch(39.9% 0.160 282.5);
Tailwind
colors: {
  custom: {
    50: '#7e6bb8',
    500: '#403299',
    950: '#000000',
  },
}
SCSS
$custom: #403299;
$custom-light: #7e6bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#403299",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 248.155,
    "s": 50.739,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39941,
    "c": 0.16025,
    "h": 282.5
  },
  "luminance": 0.05671
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403299

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

Preview Lab → · Contrast checker → · Palette generator →

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