#403197#403197

#403197 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.159 H 283.1°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#403197
RGBrgb(64, 49, 151)
HSLhsl(249, 51%, 39%)
HSVhsv(249, 68%, 59%)
CMYKcmyk(57.6%, 67.5%, 0%, 40.8%)
CIE-LABlab(28.17, 35.79, -53.81)
CIE-LCHlch(28.17, 64.62, 303.63°)
OKLaboklab(39.6% 0.036 -0.1547)
OKLCHoklch(39.6% 0.159 283.1)
XYZxyz(8.7969, 5.5204, 29.8742)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403197 #889731
analogous
#315597 #403197 #733197
triadic
#403197 #974031 #319740
tetradic
#403197 #973155 #889731 #319773
square
#403197 #973155 #889731 #319773
split-complementary
#403197 #977331 #559731
monochromatic
#19133B #2C2269 #403197 #5643C2 #7F71D1

Accessibility & contrast

On white

9.98
#403197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403197
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403197#FFFFFF#000000##FFFFFF
##4031971.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#134B5F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403197;
/* rgb */ color: rgb(64, 49, 151);
/* oklch */ color: oklch(39.6% 0.159 283.1);
Tailwind
colors: {
  custom: {
    50: '#7e6ab6',
    500: '#403197',
    950: '#000000',
  },
}
SCSS
$custom: #403197;
$custom-light: #7e6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#403197",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 248.824,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.396,
    "c": 0.15887,
    "h": 283.1
  },
  "luminance": 0.05521
}

Semantic roles & 50–950 ramp

primary
#403197
secondary
#ADB96B
accent
#DA4DC6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #403197

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

Preview Lab → · Contrast checker → · Palette generator →

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