#40328C#40328C

#40328C is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.143 H 284.7°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#40328C
RGBrgb(64, 50, 140)
HSLhsl(249, 47%, 37%)
HSVhsv(249, 64%, 55%)
CMYKcmyk(54.3%, 64.3%, 0%, 45.1%)
CIE-LABlab(27.47, 31.62, -48.16)
CIE-LCHlch(27.47, 57.61, 303.28°)
OKLaboklab(38.81% 0.0362 -0.1382)
OKLCHoklch(38.81% 0.143 284.7)
XYZxyz(7.9872, 5.2642, 25.4011)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40328C #7E8C32
analogous
#32518C #40328C #6D328C
triadic
#40328C #8C4032 #328C40
tetradic
#40328C #8C3251 #7E8C32 #328C6D
square
#40328C #8C3251 #7E8C32 #328C6D
split-complementary
#40328C #8C6D32 #518C32
monochromatic
#171232 #2B225F #40328C #5542B9 #7C6DCB

Accessibility & contrast

On white

10.23
#40328C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40328C
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40328C#FFFFFF#000000##FFFFFF
##40328C1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#21485A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #40328c;
/* rgb */ color: rgb(64, 50, 140);
/* oklch */ color: oklch(38.8% 0.143 284.7);
Tailwind
colors: {
  custom: {
    50: '#7c6bae',
    500: '#40328c',
    950: '#000000',
  },
}
SCSS
$custom: #40328c;
$custom-light: #7c6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#40328c",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 140
  },
  "hsl": {
    "h": 249.333,
    "s": 47.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38809,
    "c": 0.14282,
    "h": 284.7
  },
  "luminance": 0.05265
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40328C

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

Preview Lab → · Contrast checker → · Palette generator →

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