#40359D#40359D

#40359D is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.8% C 0.162 H 281.2°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#40359D
RGBrgb(64, 53, 157)
HSLhsl(246, 50%, 41%)
HSVhsv(246, 66%, 62%)
CMYKcmyk(59.2%, 66.2%, 0%, 38.4%)
CIE-LABlab(29.59, 35.31, -55.15)
CIE-LCHlch(29.59, 65.48, 302.63°)
OKLaboklab(40.79% 0.0316 -0.1587)
OKLCHoklch(40.79% 0.162 281.2)
XYZxyz(9.4714, 6.0699, 32.5643)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40359D #929D35
analogous
#355E9D #40359D #74359D
triadic
#40359D #9D4035 #359D40
tetradic
#40359D #9D355E #929D35 #359D74
square
#40359D #9D355E #929D35 #359D74
split-complementary
#40359D #9D7435 #5E9D35
monochromatic
#1B1641 #2D266F #40359D #594CC3 #847AD2

Accessibility & contrast

On white

9.48
#40359D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#40359D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40359D
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40359D#FFFFFF#000000##FFFFFF
##40359D1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#044F64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #40359d;
/* rgb */ color: rgb(64, 53, 157);
/* oklch */ color: oklch(40.8% 0.162 281.2);
Tailwind
colors: {
  custom: {
    50: '#7f6dbb',
    500: '#40359d',
    950: '#000000',
  },
}
SCSS
$custom: #40359d;
$custom-light: #7f6dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#40359d",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 157
  },
  "hsl": {
    "h": 246.346,
    "s": 49.524,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40788,
    "c": 0.16179,
    "h": 281.2
  },
  "luminance": 0.06071
}

Semantic roles & 50–950 ramp

primary
#40359D
secondary
#B3BB73
accent
#D94FCA
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #40359D

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

Preview Lab → · Contrast checker → · Palette generator →

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