#40349A#40349A

#40349A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.4% C 0.159 H 281.9°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#40349A
RGBrgb(64, 52, 154)
HSLhsl(247, 50%, 40%)
HSVhsv(247, 66%, 60%)
CMYKcmyk(58.4%, 66.2%, 0%, 39.6%)
CIE-LABlab(29.10, 34.94, -54.11)
CIE-LCHlch(29.10, 64.41, 302.85°)
OKLaboklab(40.36% 0.0328 -0.1556)
OKLCHoklch(40.36% 0.159 281.9)
XYZxyz(9.1733, 5.8785, 31.2169)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40349A #8E9A34
analogous
#345B9A #40349A #73349A
triadic
#40349A #9A4034 #349A40
tetradic
#40349A #9A345B #8E9A34 #349A73
square
#40349A #9A345B #8E9A34 #349A73
split-complementary
#40349A #9A7334 #5B9A34
monochromatic
#1A153E #2D256C #40349A #5849C2 #8277D1

Accessibility & contrast

On white

9.65
#40349A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#40349A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40349A
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40349A#FFFFFF#000000##FFFFFF
##40349A1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#0D4E62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #40349a;
/* rgb */ color: rgb(64, 52, 154);
/* oklch */ color: oklch(40.4% 0.159 281.9);
Tailwind
colors: {
  custom: {
    50: '#7e6cb9',
    500: '#40349a',
    950: '#000000',
  },
}
SCSS
$custom: #40349a;
$custom-light: #7e6cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#40349a",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 154
  },
  "hsl": {
    "h": 247.059,
    "s": 49.515,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40357,
    "c": 0.15906,
    "h": 281.9
  },
  "luminance": 0.05879
}

Semantic roles & 50–950 ramp

primary
#40349A
secondary
#B1BA70
accent
#D94FC9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #40349A

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

Preview Lab → · Contrast checker → · Palette generator →

#40349A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva