#403199#403199

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

Color values

HEX#403199
RGBrgb(64, 49, 153)
HSLhsl(249, 51%, 40%)
HSVhsv(249, 68%, 60%)
CMYKcmyk(58.2%, 68%, 0%, 40%)
CIE-LABlab(28.34, 36.43, -54.75)
CIE-LCHlch(28.34, 65.76, 303.64°)
OKLaboklab(39.78% 0.0357 -0.1575)
OKLCHoklch(39.78% 0.162 282.8)
XYZxyz(8.9607, 5.5860, 30.7368)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403199 #8A9931
analogous
#315699 #403199 #743199
triadic
#403199 #994031 #319940
tetradic
#403199 #993156 #8A9931 #319974
square
#403199 #993156 #8A9931 #319974
split-complementary
#403199 #997431 #569931
monochromatic
#19133C #2D226B #403199 #5644C3 #8072D2

Accessibility & contrast

On white

9.92
#403199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403199
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403199#FFFFFF#000000##FFFFFF
##4031991.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#104C61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #403199;
/* rgb */ color: rgb(64, 49, 153);
/* oklch */ color: oklch(39.8% 0.162 282.8);
Tailwind
colors: {
  custom: {
    50: '#7f6ab8',
    500: '#403199',
    950: '#000000',
  },
}
SCSS
$custom: #403199;
$custom-light: #7f6ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#403199",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 153
  },
  "hsl": {
    "h": 248.654,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3978,
    "c": 0.1615,
    "h": 282.8
  },
  "luminance": 0.05587
}

Semantic roles & 50–950 ramp

primary
#403199
secondary
#AFBA6C
accent
#DB4DC6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #403199

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

Preview Lab → · Contrast checker → · Palette generator →

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