#40329C#40329C

#40329C is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.2% C 0.164 H 282.1°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#40329C
RGBrgb(64, 50, 156)
HSLhsl(248, 51%, 40%)
HSVhsv(248, 68%, 61%)
CMYKcmyk(59%, 67.9%, 0%, 38.8%)
CIE-LABlab(28.83, 36.80, -55.78)
CIE-LCHlch(28.83, 66.83, 303.41°)
OKLaboklab(40.21% 0.0344 -0.1605)
OKLCHoklch(40.21% 0.164 282.1)
XYZxyz(9.2538, 5.7709, 32.0723)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40329C #8E9C32
analogous
#32599C #40329C #75329C
triadic
#40329C #9C4032 #329C40
tetradic
#40329C #9C3259 #8E9C32 #329C75
square
#40329C #9C3259 #8E9C32 #329C75
split-complementary
#40329C #9C7532 #599C32
monochromatic
#1A143F #2D236E #40329C #5847C4 #8275D3

Accessibility & contrast

On white

9.75
#40329C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#40329C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40329C
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40329C#FFFFFF#000000##FFFFFF
##40329C1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#084D62
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #40329c;
/* rgb */ color: rgb(64, 50, 156);
/* oklch */ color: oklch(40.2% 0.164 282.1);
Tailwind
colors: {
  custom: {
    50: '#7f6bba',
    500: '#40329c',
    950: '#000000',
  },
}
SCSS
$custom: #40329c;
$custom-light: #7f6bba;
$custom-dark: #000000;
JSON
{
  "hex": "#40329c",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 156
  },
  "hsl": {
    "h": 247.925,
    "s": 51.456,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4021,
    "c": 0.16418,
    "h": 282.1
  },
  "luminance": 0.05771
}

Semantic roles & 50–950 ramp

primary
#40329C
secondary
#B1BB6F
accent
#DB4DC8
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #40329C

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

Preview Lab → · Contrast checker → · Palette generator →

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