#40329F#40329F

#40329F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.5% C 0.168 H 281.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#40329F
RGBrgb(64, 50, 159)
HSLhsl(248, 52%, 41%)
HSVhsv(248, 69%, 62%)
CMYKcmyk(59.7%, 68.6%, 0%, 37.6%)
CIE-LABlab(29.09, 37.77, -57.17)
CIE-LCHlch(29.09, 68.52, 303.45°)
OKLaboklab(40.48% 0.034 -0.1646)
OKLCHoklch(40.48% 0.168 281.7)
XYZxyz(9.5110, 5.8738, 33.4267)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40329F #919F32
analogous
#325A9F #40329F #76329F
triadic
#40329F #9F4032 #329F40
tetradic
#40329F #9F325A #919F32 #329F76
square
#40329F #9F325A #919F32 #329F76
split-complementary
#40329F #9F7632 #5A9F32
monochromatic
#1B1542 #2D2370 #40329F #5949C6 #8377D4

Accessibility & contrast

On white

9.66
#40329F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#40329F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40329F
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40329F#FFFFFF#000000##FFFFFF
##40329F1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #40329f;
/* rgb */ color: rgb(64, 50, 159);
/* oklch */ color: oklch(40.5% 0.168 281.7);
Tailwind
colors: {
  custom: {
    50: '#806bbc',
    500: '#40329f',
    950: '#000000',
  },
}
SCSS
$custom: #40329f;
$custom-light: #806bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#40329f",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 159
  },
  "hsl": {
    "h": 247.706,
    "s": 52.153,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40483,
    "c": 0.16809,
    "h": 281.7
  },
  "luminance": 0.05874
}

Semantic roles & 50–950 ramp

primary
#40329F
secondary
#B3BD70
accent
#DC4CC9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #40329F

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

Preview Lab → · Contrast checker → · Palette generator →

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