#403191#403191

#403191 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.151 H 284.1°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#403191
RGBrgb(64, 49, 145)
HSLhsl(249, 49%, 38%)
HSVhsv(249, 66%, 57%)
CMYKcmyk(55.9%, 66.2%, 0%, 43.1%)
CIE-LABlab(27.66, 33.85, -50.96)
CIE-LCHlch(27.66, 61.17, 303.59°)
OKLaboklab(39.07% 0.0367 -0.1464)
OKLCHoklch(39.07% 0.151 284.1)
XYZxyz(8.3219, 5.3305, 27.3729)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403191 #829131
analogous
#315291 #403191 #703191
triadic
#403191 #914031 #319140
tetradic
#403191 #913152 #829131 #319170
square
#403191 #913152 #829131 #319170
split-complementary
#403191 #917031 #529131
monochromatic
#181236 #2C2263 #403191 #5441BF #7D6ECE

Accessibility & contrast

On white

10.16
#403191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#403191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403191
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403191#FFFFFF#000000##FFFFFF
##4031911.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#003E8F
Tritanopia (blue-blind)
#1C495C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #403191;
/* rgb */ color: rgb(64, 49, 145);
/* oklch */ color: oklch(39.1% 0.151 284.1);
Tailwind
colors: {
  custom: {
    50: '#7d6ab2',
    500: '#403191',
    950: '#000000',
  },
}
SCSS
$custom: #403191;
$custom-light: #7d6ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#403191",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 145
  },
  "hsl": {
    "h": 249.375,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3907,
    "c": 0.15091,
    "h": 284.1
  },
  "luminance": 0.05331
}

Semantic roles & 50–950 ramp

primary
#403191
secondary
#AAB668
accent
#D94FC3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #403191

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

Preview Lab → · Contrast checker → · Palette generator →

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