#40328E#40328E

#40328E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.146 H 284.3°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#40328E
RGBrgb(64, 50, 142)
HSLhsl(249, 48%, 38%)
HSVhsv(249, 65%, 56%)
CMYKcmyk(54.9%, 64.8%, 0%, 44.3%)
CIE-LABlab(27.64, 32.26, -49.14)
CIE-LCHlch(27.64, 58.78, 303.29°)
OKLaboklab(38.98% 0.036 -0.141)
OKLCHoklch(38.98% 0.146 284.3)
XYZxyz(8.1360, 5.3237, 26.1848)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40328E #808E32
analogous
#32528E #40328E #6E328E
triadic
#40328E #8E4032 #328E40
tetradic
#40328E #8E3252 #808E32 #328E6E
square
#40328E #8E3252 #808E32 #328E6E
split-complementary
#40328E #8E6E32 #528E32
monochromatic
#171233 #2C2261 #40328E #5442BB #7D6ECC

Accessibility & contrast

On white

10.17
#40328E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40328E
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40328E#FFFFFF#000000##FFFFFF
##40328E1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#1F485B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #40328e;
/* rgb */ color: rgb(64, 50, 142);
/* oklch */ color: oklch(39.0% 0.146 284.3);
Tailwind
colors: {
  custom: {
    50: '#7d6bb0',
    500: '#40328e',
    950: '#000000',
  },
}
SCSS
$custom: #40328e;
$custom-light: #7d6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#40328e",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 142
  },
  "hsl": {
    "h": 249.13,
    "s": 47.917,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38979,
    "c": 0.14555,
    "h": 284.3
  },
  "luminance": 0.05324
}

Semantic roles & 50–950 ramp

primary
#40328E
secondary
#A8B468
accent
#D850C3
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #40328E

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

Preview Lab → · Contrast checker → · Palette generator →

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