#40328A#40328A

#40328A is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.140 H 285.0°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#40328A
RGBrgb(64, 50, 138)
HSLhsl(250, 47%, 37%)
HSVhsv(250, 64%, 54%)
CMYKcmyk(53.6%, 63.8%, 0%, 45.9%)
CIE-LABlab(27.31, 30.97, -47.19)
CIE-LCHlch(27.31, 56.44, 303.28°)
OKLaboklab(38.64% 0.0363 -0.1353)
OKLCHoklch(38.64% 0.14 285)
XYZxyz(7.8410, 5.2058, 24.6315)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40328A #7C8A32
analogous
#32508A #40328A #6C328A
triadic
#40328A #8A4032 #328A40
tetradic
#40328A #8A3250 #7C8A32 #328A6C
square
#40328A #8A3250 #7C8A32 #328A6C
split-complementary
#40328A #8A6C32 #508A32
monochromatic
#161130 #2B225D #40328A #5542B7 #7B6CCA

Accessibility & contrast

On white

10.29
#40328A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#40328A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40328A
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40328A#FFFFFF#000000##FFFFFF
##40328A1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#234759
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #40328a;
/* rgb */ color: rgb(64, 50, 138);
/* oklch */ color: oklch(38.6% 0.140 285.0);
Tailwind
colors: {
  custom: {
    50: '#7c6aad',
    500: '#40328a',
    950: '#000000',
  },
}
SCSS
$custom: #40328a;
$custom-light: #7c6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#40328a",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 138
  },
  "hsl": {
    "h": 249.545,
    "s": 46.809,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3864,
    "c": 0.14009,
    "h": 285
  },
  "luminance": 0.05206
}

Semantic roles & 50–950 ramp

primary
#40328A
secondary
#A6B266
accent
#D651C1
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #40328A

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

Preview Lab → · Contrast checker → · Palette generator →

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