#40328F#40328F

#40328F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.1% C 0.147 H 284.1°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#40328F
RGBrgb(64, 50, 143)
HSLhsl(249, 48%, 38%)
HSVhsv(249, 65%, 56%)
CMYKcmyk(55.2%, 65%, 0%, 43.9%)
CIE-LABlab(27.72, 32.59, -49.62)
CIE-LCHlch(27.72, 59.36, 303.29°)
OKLaboklab(39.06% 0.0359 -0.1424)
OKLCHoklch(39.06% 0.147 284.1)
XYZxyz(8.2114, 5.3539, 26.5820)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40328F #818F32
analogous
#32528F #40328F #6E328F
triadic
#40328F #8F4032 #328F40
tetradic
#40328F #8F3252 #818F32 #328F6E
square
#40328F #8F3252 #818F32 #328F6E
split-complementary
#40328F #8F6E32 #528F32
monochromatic
#171234 #2C2262 #40328F #5442BC #7D6FCD

Accessibility & contrast

On white

10.14
#40328F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#40328F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40328F
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40328F#FFFFFF#000000##FFFFFF
##40328F1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#1E495B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #40328f;
/* rgb */ color: rgb(64, 50, 143);
/* oklch */ color: oklch(39.1% 0.147 284.1);
Tailwind
colors: {
  custom: {
    50: '#7d6bb1',
    500: '#40328f',
    950: '#000000',
  },
}
SCSS
$custom: #40328f;
$custom-light: #7d6bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#40328f",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 143
  },
  "hsl": {
    "h": 249.032,
    "s": 48.187,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39064,
    "c": 0.1469,
    "h": 284.1
  },
  "luminance": 0.05354
}

Semantic roles & 50–950 ramp

primary
#40328F
secondary
#A9B468
accent
#D850C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #40328F

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

Preview Lab → · Contrast checker → · Palette generator →

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