#40319E#40319E

#40319E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.2% C 0.168 H 282.0°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#40319E
RGBrgb(64, 49, 158)
HSLhsl(248, 53%, 41%)
HSVhsv(248, 69%, 62%)
CMYKcmyk(59.5%, 69%, 0%, 38%)
CIE-LABlab(28.78, 38.04, -57.07)
CIE-LCHlch(28.78, 68.59, 303.69°)
OKLaboklab(40.24% 0.035 -0.1643)
OKLCHoklch(40.24% 0.168 282)
XYZxyz(9.3823, 5.7546, 32.9575)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40319E #8F9E31
analogous
#31589E #40319E #76319E
triadic
#40319E #9E4031 #319E40
tetradic
#40319E #9E3158 #8F9E31 #319E76
square
#40319E #9E3158 #8F9E31 #319E76
split-complementary
#40319E #9E7631 #589E31
monochromatic
#1A1441 #2D236F #40319E #5846C6 #8275D4

Accessibility & contrast

On white

9.76
#40319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#40319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40319E
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40319E#FFFFFF#000000##FFFFFF
##40319E1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#034D63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #40319e;
/* rgb */ color: rgb(64, 49, 158);
/* oklch */ color: oklch(40.2% 0.168 282.0);
Tailwind
colors: {
  custom: {
    50: '#7f6abc',
    500: '#40319e',
    950: '#000000',
  },
}
SCSS
$custom: #40319e;
$custom-light: #7f6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#40319e",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 248.257,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40235,
    "c": 0.168,
    "h": 282
  },
  "luminance": 0.05755
}

Semantic roles & 50–950 ramp

primary
#40319E
secondary
#B2BC6E
accent
#DC4CC8
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #40319E

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

Preview Lab → · Contrast checker → · Palette generator →

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