#40319A#40319A

#40319A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.163 H 282.6°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#40319A
RGBrgb(64, 49, 154)
HSLhsl(249, 52%, 40%)
HSVhsv(249, 68%, 60%)
CMYKcmyk(58.4%, 68.2%, 0%, 39.6%)
CIE-LABlab(28.43, 36.75, -55.21)
CIE-LCHlch(28.43, 66.33, 303.65°)
OKLaboklab(39.87% 0.0356 -0.1589)
OKLCHoklch(39.87% 0.163 282.6)
XYZxyz(9.0436, 5.6191, 31.1736)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40319A #8B9A31
analogous
#31579A #40319A #74319A
triadic
#40319A #9A4031 #319A40
tetradic
#40319A #9A3157 #8B9A31 #319A74
square
#40319A #9A3157 #8B9A31 #319A74
split-complementary
#40319A #9A7431 #579A31
monochromatic
#19133D #2D226C #40319A #5745C4 #8173D2

Accessibility & contrast

On white

9.89
#40319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#40319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40319A
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40319A#FFFFFF#000000##FFFFFF
##40319A1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#0E4C61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40319a;
/* rgb */ color: rgb(64, 49, 154);
/* oklch */ color: oklch(39.9% 0.163 282.6);
Tailwind
colors: {
  custom: {
    50: '#7f6ab9',
    500: '#40319a',
    950: '#000000',
  },
}
SCSS
$custom: #40319a;
$custom-light: #7f6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#40319a",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 248.571,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3987,
    "c": 0.1628,
    "h": 282.6
  },
  "luminance": 0.0562
}

Semantic roles & 50–950 ramp

primary
#40319A
secondary
#AFBA6C
accent
#DB4DC7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #40319A

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

Preview Lab → · Contrast checker → · Palette generator →

#40319A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva