#403291#403291

#403291 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.150 H 283.8°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#403291
RGBrgb(64, 50, 145)
HSLhsl(249, 49%, 38%)
HSVhsv(249, 66%, 57%)
CMYKcmyk(55.9%, 65.5%, 0%, 43.1%)
CIE-LABlab(27.89, 33.24, -50.58)
CIE-LCHlch(27.89, 60.52, 303.31°)
OKLaboklab(39.24% 0.0357 -0.1453)
OKLCHoklch(39.24% 0.15 283.8)
XYZxyz(8.3642, 5.4150, 27.3870)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403291 #839132
analogous
#325391 #403291 #6F3291
triadic
#403291 #914032 #329140
tetradic
#403291 #913253 #839132 #32916F
square
#403291 #913253 #839132 #32916F
split-complementary
#403291 #916F32 #539132
monochromatic
#181336 #2C2263 #403291 #5442BE #7E70CE

Accessibility & contrast

On white

10.08
#403291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#403291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403291
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403291#FFFFFF#000000##FFFFFF
##4032911.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#003F8F
Tritanopia (blue-blind)
#1C495D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403291;
/* rgb */ color: rgb(64, 50, 145);
/* oklch */ color: oklch(39.2% 0.150 283.8);
Tailwind
colors: {
  custom: {
    50: '#7d6bb2',
    500: '#403291',
    950: '#000000',
  },
}
SCSS
$custom: #403291;
$custom-light: #7d6bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#403291",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 145
  },
  "hsl": {
    "h": 248.842,
    "s": 48.718,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39237,
    "c": 0.1496,
    "h": 283.8
  },
  "luminance": 0.05416
}

Semantic roles & 50–950 ramp

primary
#403291
secondary
#AAB569
accent
#D850C4
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #403291

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

Preview Lab → · Contrast checker → · Palette generator →

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