#40358E#40358E

#40358E is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.141 H 283.4°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#40358E
RGBrgb(64, 53, 142)
HSLhsl(247, 46%, 38%)
HSVhsv(247, 63%, 56%)
CMYKcmyk(54.9%, 62.7%, 0%, 44.3%)
CIE-LABlab(28.35, 30.38, -47.98)
CIE-LCHlch(28.35, 56.79, 302.35°)
OKLaboklab(39.5% 0.0329 -0.1376)
OKLCHoklch(39.5% 0.141 283.4)
XYZxyz(8.2685, 5.5887, 26.2290)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40358E #838E35
analogous
#35568E #40358E #6C358E
triadic
#40358E #8E4035 #358E40
tetradic
#40358E #8E3556 #838E35 #358E6C
square
#40358E #8E3556 #838E35 #358E6C
split-complementary
#40358E #8E6C35 #568E35
monochromatic
#181435 #2C2461 #40358E #5446BA #7E73CB

Accessibility & contrast

On white

9.92
#40358E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#40358E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40358E
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40358E#FFFFFF#000000##FFFFFF
##40358E1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#1E4A5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40358e;
/* rgb */ color: rgb(64, 53, 142);
/* oklch */ color: oklch(39.5% 0.141 283.4);
Tailwind
colors: {
  custom: {
    50: '#7c6db0',
    500: '#40358e',
    950: '#000000',
  },
}
SCSS
$custom: #40358e;
$custom-light: #7c6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#40358e",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 142
  },
  "hsl": {
    "h": 247.416,
    "s": 45.641,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39499,
    "c": 0.14147,
    "h": 283.4
  },
  "luminance": 0.05589
}

Semantic roles & 50–950 ramp

primary
#40358E
secondary
#AAB36C
accent
#D552C5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #40358E

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

Preview Lab → · Contrast checker → · Palette generator →

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