#403196#403196

#403196 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.5% C 0.158 H 283.2°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#403196
RGBrgb(64, 49, 150)
HSLhsl(249, 51%, 39%)
HSVhsv(249, 67%, 59%)
CMYKcmyk(57.3%, 67.3%, 0%, 41.2%)
CIE-LABlab(28.08, 35.46, -53.34)
CIE-LCHlch(28.08, 64.05, 303.62°)
OKLaboklab(39.51% 0.0361 -0.1534)
OKLCHoklch(39.51% 0.158 283.2)
XYZxyz(8.7160, 5.4881, 29.4483)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403196 #879631
analogous
#315596 #403196 #733196
triadic
#403196 #964031 #319640
tetradic
#403196 #963155 #879631 #319673
square
#403196 #963155 #879631 #319673
split-complementary
#403196 #967331 #559631
monochromatic
#19133A #2C2268 #403196 #5643C1 #7F71D1

Accessibility & contrast

On white

10.01
#403196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#403196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403196
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403196#FFFFFF#000000##FFFFFF
##4031961.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#154B5F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403196;
/* rgb */ color: rgb(64, 49, 150);
/* oklch */ color: oklch(39.5% 0.158 283.2);
Tailwind
colors: {
  custom: {
    50: '#7e6ab6',
    500: '#403196',
    950: '#000000',
  },
}
SCSS
$custom: #403196;
$custom-light: #7e6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#403196",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 248.911,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39511,
    "c": 0.15755,
    "h": 283.2
  },
  "luminance": 0.05489
}

Semantic roles & 50–950 ramp

primary
#403196
secondary
#ADB86A
accent
#DA4EC5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #403196

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

Preview Lab → · Contrast checker → · Palette generator →

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