#40359E#40359E

#40359E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.9% C 0.163 H 281.1°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#40359E
RGBrgb(64, 53, 158)
HSLhsl(246, 50%, 41%)
HSVhsv(246, 66%, 62%)
CMYKcmyk(59.5%, 66.5%, 0%, 38%)
CIE-LABlab(29.67, 35.64, -55.62)
CIE-LCHlch(29.67, 66.05, 302.65°)
OKLaboklab(40.88% 0.0314 -0.16)
OKLCHoklch(40.88% 0.163 281.1)
XYZxyz(9.5571, 6.1042, 33.0157)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40359E #939E35
analogous
#355F9E #40359E #75359E
triadic
#40359E #9E4035 #359E40
tetradic
#40359E #9E355F #939E35 #359E75
square
#40359E #9E355F #939E35 #359E75
split-complementary
#40359E #9E7535 #5F9E35
monochromatic
#1B1642 #2D2670 #40359E #594DC3 #847BD3

Accessibility & contrast

On white

9.46
#40359E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#40359E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40359E
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40359E#FFFFFF#000000##FFFFFF
##40359E1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#025064
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #40359e;
/* rgb */ color: rgb(64, 53, 158);
/* oklch */ color: oklch(40.9% 0.163 281.1);
Tailwind
colors: {
  custom: {
    50: '#7f6dbc',
    500: '#40359e',
    950: '#000000',
  },
}
SCSS
$custom: #40359e;
$custom-light: #7f6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#40359e",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 158
  },
  "hsl": {
    "h": 246.286,
    "s": 49.763,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40877,
    "c": 0.16311,
    "h": 281.1
  },
  "luminance": 0.06105
}

Semantic roles & 50–950 ramp

primary
#40359E
secondary
#B4BB73
accent
#D94FCB
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #40359E

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

Preview Lab → · Contrast checker → · Palette generator →

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