#40359A#40359A

#40359A is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.5% C 0.158 H 281.7°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#40359A
RGBrgb(64, 53, 154)
HSLhsl(247, 49%, 41%)
HSVhsv(247, 66%, 60%)
CMYKcmyk(58.4%, 65.6%, 0%, 39.6%)
CIE-LABlab(29.33, 34.32, -53.74)
CIE-LCHlch(29.33, 63.76, 302.57°)
OKLaboklab(40.52% 0.0319 -0.1545)
OKLCHoklch(40.52% 0.158 281.7)
XYZxyz(9.2184, 5.9687, 31.2319)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40359A #8F9A35
analogous
#355C9A #40359A #72359A
triadic
#40359A #9A4035 #359A40
tetradic
#40359A #9A355C #8F9A35 #359A72
square
#40359A #9A355C #8F9A35 #359A72
split-complementary
#40359A #9A7235 #5C9A35
monochromatic
#1A163F #2D256C #40359A #584BC1 #8279D1

Accessibility & contrast

On white

9.57
#40359A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#40359A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40359A
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40359A#FFFFFF#000000##FFFFFF
##40359A1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40359a;
/* rgb */ color: rgb(64, 53, 154);
/* oklch */ color: oklch(40.5% 0.158 281.7);
Tailwind
colors: {
  custom: {
    50: '#7e6db9',
    500: '#40359a',
    950: '#000000',
  },
}
SCSS
$custom: #40359a;
$custom-light: #7e6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#40359a",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 154
  },
  "hsl": {
    "h": 246.535,
    "s": 48.792,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40524,
    "c": 0.15779,
    "h": 281.7
  },
  "luminance": 0.05969
}

Semantic roles & 50–950 ramp

primary
#40359A
secondary
#B2B971
accent
#D84FC9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #40359A

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

Preview Lab → · Contrast checker → · Palette generator →

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