#40319B#40319B

#40319B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.164 H 282.5°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#40319B
RGBrgb(64, 49, 155)
HSLhsl(248, 52%, 40%)
HSVhsv(248, 68%, 61%)
CMYKcmyk(58.7%, 68.4%, 0%, 39.2%)
CIE-LABlab(28.52, 37.08, -55.68)
CIE-LCHlch(28.52, 66.89, 303.66°)
OKLaboklab(39.96% 0.0354 -0.1602)
OKLCHoklch(39.96% 0.164 282.5)
XYZxyz(9.1272, 5.6526, 31.6141)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40319B #8C9B31
analogous
#31579B #40319B #75319B
triadic
#40319B #9B4031 #319B40
tetradic
#40319B #9B3157 #8C9B31 #319B75
square
#40319B #9B3157 #8C9B31 #319B75
split-complementary
#40319B #9B7531 #579B31
monochromatic
#1A143E #2D226D #40319B #5745C4 #8173D3

Accessibility & contrast

On white

9.86
#40319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#40319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40319B
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40319B#FFFFFF#000000##FFFFFF
##40319B1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#0B4C62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40319b;
/* rgb */ color: rgb(64, 49, 155);
/* oklch */ color: oklch(40.0% 0.164 282.5);
Tailwind
colors: {
  custom: {
    50: '#7f6ab9',
    500: '#40319b',
    950: '#000000',
  },
}
SCSS
$custom: #40319b;
$custom-light: #7f6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#40319b",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 248.491,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.39961,
    "c": 0.16411,
    "h": 282.5
  },
  "luminance": 0.05653
}

Semantic roles & 50–950 ramp

primary
#40319B
secondary
#B0BB6D
accent
#DB4CC7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #40319B

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

Preview Lab → · Contrast checker → · Palette generator →

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