#40328B#40328B

#40328B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.141 H 284.9°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#40328B
RGBrgb(64, 50, 139)
HSLhsl(249, 47%, 37%)
HSVhsv(249, 64%, 55%)
CMYKcmyk(54%, 64%, 0%, 45.5%)
CIE-LABlab(27.39, 31.29, -47.68)
CIE-LCHlch(27.39, 57.03, 303.28°)
OKLaboklab(38.72% 0.0363 -0.1367)
OKLCHoklch(38.72% 0.141 284.9)
XYZxyz(7.9138, 5.2348, 25.0145)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40328B #7D8B32
analogous
#32518B #40328B #6D328B
triadic
#40328B #8B4032 #328B40
tetradic
#40328B #8B3251 #7D8B32 #328B6D
square
#40328B #8B3251 #7D8B32 #328B6D
split-complementary
#40328B #8B6D32 #518B32
monochromatic
#171231 #2B225E #40328B #5542B8 #7C6DCA

Accessibility & contrast

On white

10.26
#40328B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#40328B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40328B
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40328B#FFFFFF#000000##FFFFFF
##40328B1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#224759
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #40328b;
/* rgb */ color: rgb(64, 50, 139);
/* oklch */ color: oklch(38.7% 0.141 284.9);
Tailwind
colors: {
  custom: {
    50: '#7c6aae',
    500: '#40328b',
    950: '#000000',
  },
}
SCSS
$custom: #40328b;
$custom-light: #7c6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#40328b",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 139
  },
  "hsl": {
    "h": 249.438,
    "s": 47.09,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38724,
    "c": 0.14146,
    "h": 284.9
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#40328B
secondary
#A6B267
accent
#D751C2
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #40328B

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

Preview Lab → · Contrast checker → · Palette generator →

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