#40329A#40329A

#40329A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.162 H 282.4°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#40329A
RGBrgb(64, 50, 154)
HSLhsl(248, 51%, 40%)
HSVhsv(248, 68%, 60%)
CMYKcmyk(58.4%, 67.5%, 0%, 39.6%)
CIE-LABlab(28.65, 36.15, -54.85)
CIE-LCHlch(28.65, 65.69, 303.39°)
OKLaboklab(40.03% 0.0347 -0.1578)
OKLCHoklch(40.03% 0.162 282.4)
XYZxyz(9.0859, 5.7037, 31.1877)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40329A #8C9A32
analogous
#32589A #40329A #74329A
triadic
#40329A #9A4032 #329A40
tetradic
#40329A #9A3258 #8C9A32 #329A74
square
#40329A #9A3258 #8C9A32 #329A74
split-complementary
#40329A #9A7432 #589A32
monochromatic
#1A143E #2D236C #40329A #5746C3 #8174D2

Accessibility & contrast

On white

9.81
#40329A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#40329A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40329A
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40329A#FFFFFF#000000##FFFFFF
##40329A1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#0D4D61
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #40329a;
/* rgb */ color: rgb(64, 50, 154);
/* oklch */ color: oklch(40.0% 0.162 282.4);
Tailwind
colors: {
  custom: {
    50: '#7f6bb9',
    500: '#40329a',
    950: '#000000',
  },
}
SCSS
$custom: #40329a;
$custom-light: #7f6bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#40329a",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 154
  },
  "hsl": {
    "h": 248.077,
    "s": 50.98,
    "l": 40
  },
  "oklch": {
    "l": 0.4003,
    "c": 0.16156,
    "h": 282.4
  },
  "luminance": 0.05704
}

Semantic roles & 50–950 ramp

primary
#40329A
secondary
#B0BA6E
accent
#DA4DC7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #40329A

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

Preview Lab → · Contrast checker → · Palette generator →

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