#40349C#40349C

#40349C is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.5% C 0.162 H 281.6°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#40349C
RGBrgb(64, 52, 156)
HSLhsl(247, 50%, 41%)
HSVhsv(247, 67%, 61%)
CMYKcmyk(59%, 66.7%, 0%, 38.8%)
CIE-LABlab(29.28, 35.59, -55.05)
CIE-LCHlch(29.28, 65.55, 302.88°)
OKLaboklab(40.53% 0.0326 -0.1584)
OKLCHoklch(40.53% 0.162 281.6)
XYZxyz(9.3412, 5.9457, 32.1014)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40349C #909C34
analogous
#345C9C #40349C #74349C
triadic
#40349C #9C4034 #349C40
tetradic
#40349C #9C345C #909C34 #349C74
square
#40349C #9C345C #909C34 #349C74
split-complementary
#40349C #9C7434 #5C9C34
monochromatic
#1A1540 #2D256E #40349C #584AC3 #8378D2

Accessibility & contrast

On white

9.59
#40349C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#40349C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40349C
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40349C#FFFFFF#000000##FFFFFF
##40349C1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#084E63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #40349c;
/* rgb */ color: rgb(64, 52, 156);
/* oklch */ color: oklch(40.5% 0.162 281.6);
Tailwind
colors: {
  custom: {
    50: '#7f6cba',
    500: '#40349c',
    950: '#000000',
  },
}
SCSS
$custom: #40349c;
$custom-light: #7f6cba;
$custom-dark: #000000;
JSON
{
  "hex": "#40349c",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 156
  },
  "hsl": {
    "h": 246.923,
    "s": 50,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40534,
    "c": 0.16171,
    "h": 281.6
  },
  "luminance": 0.05946
}

Semantic roles & 50–950 ramp

primary
#40349C
secondary
#B2BB71
accent
#DA4EC9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #40349C

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

Preview Lab → · Contrast checker → · Palette generator →

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