#40359C#40359C

#40359C is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.7% C 0.160 H 281.4°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#40359C
RGBrgb(64, 53, 156)
HSLhsl(246, 49%, 41%)
HSVhsv(246, 66%, 61%)
CMYKcmyk(59%, 66%, 0%, 38.8%)
CIE-LABlab(29.50, 34.98, -54.68)
CIE-LCHlch(29.50, 64.91, 302.61°)
OKLaboklab(40.7% 0.0317 -0.1573)
OKLCHoklch(40.7% 0.16 281.4)
XYZxyz(9.3863, 6.0359, 32.1165)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40359C #919C35
analogous
#355D9C #40359C #73359C
triadic
#40359C #9C4035 #359C40
tetradic
#40359C #9C355D #919C35 #359C73
square
#40359C #9C355D #919C35 #359C73
split-complementary
#40359C #9C7335 #5D9C35
monochromatic
#1B1641 #2D256E #40359C #594CC2 #837AD2

Accessibility & contrast

On white

9.51
#40359C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40359C
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40359C#FFFFFF#000000##FFFFFF
##40359C1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#074F63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #40359c;
/* rgb */ color: rgb(64, 53, 156);
/* oklch */ color: oklch(40.7% 0.160 281.4);
Tailwind
colors: {
  custom: {
    50: '#7f6dba',
    500: '#40359c',
    950: '#000000',
  },
}
SCSS
$custom: #40359c;
$custom-light: #7f6dba;
$custom-dark: #000000;
JSON
{
  "hex": "#40359c",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 156
  },
  "hsl": {
    "h": 246.408,
    "s": 49.282,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40699,
    "c": 0.16045,
    "h": 281.4
  },
  "luminance": 0.06036
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40359C

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

Preview Lab → · Contrast checker → · Palette generator →

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