#40328D#40328D

#40328D is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.144 H 284.5°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#40328D
RGBrgb(64, 50, 141)
HSLhsl(249, 48%, 37%)
HSVhsv(249, 65%, 55%)
CMYKcmyk(54.6%, 64.5%, 0%, 44.7%)
CIE-LABlab(27.56, 31.94, -48.65)
CIE-LCHlch(27.56, 58.20, 303.28°)
OKLaboklab(38.89% 0.0361 -0.1396)
OKLCHoklch(38.89% 0.144 284.5)
XYZxyz(8.0612, 5.2938, 25.7912)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40328D #7F8D32
analogous
#32518D #40328D #6E328D
triadic
#40328D #8D4032 #328D40
tetradic
#40328D #8D3251 #7F8D32 #328D6E
square
#40328D #8D3251 #7F8D32 #328D6E
split-complementary
#40328D #8D6E32 #518D32
monochromatic
#171233 #2B2260 #40328D #5542BA #7C6ECC

Accessibility & contrast

On white

10.20
#40328D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#40328D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40328D
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40328D#FFFFFF#000000##FFFFFF
##40328D1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#20485A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #40328d;
/* rgb */ color: rgb(64, 50, 141);
/* oklch */ color: oklch(38.9% 0.144 284.5);
Tailwind
colors: {
  custom: {
    50: '#7c6baf',
    500: '#40328d',
    950: '#000000',
  },
}
SCSS
$custom: #40328d;
$custom-light: #7c6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#40328d",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 141
  },
  "hsl": {
    "h": 249.231,
    "s": 47.644,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38894,
    "c": 0.14418,
    "h": 284.5
  },
  "luminance": 0.05294
}

Semantic roles & 50–950 ramp

primary
#40328D
secondary
#A8B368
accent
#D751C3
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #40328D

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

Preview Lab → · Contrast checker → · Palette generator →

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