#40349B#40349B

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

Color values

HEX#40349B
RGBrgb(64, 52, 155)
HSLhsl(247, 50%, 41%)
HSVhsv(247, 66%, 61%)
CMYKcmyk(58.7%, 66.5%, 0%, 39.2%)
CIE-LABlab(29.19, 35.26, -54.58)
CIE-LCHlch(29.19, 64.98, 302.87°)
OKLaboklab(40.45% 0.0327 -0.157)
OKLCHoklch(40.45% 0.16 281.8)
XYZxyz(9.2569, 5.9119, 31.6573)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40349B #8F9B34
analogous
#345C9B #40349B #73349B
triadic
#40349B #9B4034 #349B40
tetradic
#40349B #9B345C #8F9B34 #349B73
square
#40349B #9B345C #8F9B34 #349B73
split-complementary
#40349B #9B7334 #5C9B34
monochromatic
#1A153F #2D256D #40349B #584AC2 #8278D2

Accessibility & contrast

On white

9.62
#40349B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40349B
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40349B#FFFFFF#000000##FFFFFF
##40349B1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#0A4E63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #40349b;
/* rgb */ color: rgb(64, 52, 155);
/* oklch */ color: oklch(40.4% 0.160 281.8);
Tailwind
colors: {
  custom: {
    50: '#7f6cb9',
    500: '#40349b',
    950: '#000000',
  },
}
SCSS
$custom: #40349b;
$custom-light: #7f6cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#40349b",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 155
  },
  "hsl": {
    "h": 246.99,
    "s": 49.758,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40445,
    "c": 0.16039,
    "h": 281.8
  },
  "luminance": 0.05913
}

Semantic roles & 50–950 ramp

primary
#40349B
secondary
#B2BA71
accent
#D94FC9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #40349B

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

Preview Lab → · Contrast checker → · Palette generator →

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