#40329B#40329B

#40329B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.163 H 282.2°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#40329B
RGBrgb(64, 50, 155)
HSLhsl(248, 51%, 40%)
HSVhsv(248, 68%, 61%)
CMYKcmyk(58.7%, 67.7%, 0%, 39.2%)
CIE-LABlab(28.74, 36.48, -55.32)
CIE-LCHlch(28.74, 66.26, 303.40°)
OKLaboklab(40.12% 0.0345 -0.1592)
OKLCHoklch(40.12% 0.163 282.2)
XYZxyz(9.1695, 5.7372, 31.6282)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40329B #8D9B32
analogous
#32589B #40329B #74329B
triadic
#40329B #9B4032 #329B40
tetradic
#40329B #9B3258 #8D9B32 #329B74
square
#40329B #9B3258 #8D9B32 #329B74
split-complementary
#40329B #9B7432 #589B32
monochromatic
#1A143E #2D236D #40329B #5747C4 #8175D2

Accessibility & contrast

On white

9.78
#40329B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40329B
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40329B#FFFFFF#000000##FFFFFF
##40329B1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#0B4D62
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #40329b;
/* rgb */ color: rgb(64, 50, 155);
/* oklch */ color: oklch(40.1% 0.163 282.2);
Tailwind
colors: {
  custom: {
    50: '#7f6bb9',
    500: '#40329b',
    950: '#000000',
  },
}
SCSS
$custom: #40329b;
$custom-light: #7f6bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#40329b",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 155
  },
  "hsl": {
    "h": 248,
    "s": 51.22,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4012,
    "c": 0.16288,
    "h": 282.2
  },
  "luminance": 0.05738
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40329B

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

Preview Lab → · Contrast checker → · Palette generator →

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