#40358D#40358D

#40358D is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.140 H 283.6°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#40358D
RGBrgb(64, 53, 141)
HSLhsl(248, 45%, 38%)
HSVhsv(248, 62%, 55%)
CMYKcmyk(54.6%, 62.4%, 0%, 44.7%)
CIE-LABlab(28.27, 30.05, -47.49)
CIE-LCHlch(28.27, 56.20, 302.33°)
OKLaboklab(39.42% 0.0329 -0.1362)
OKLCHoklch(39.42% 0.14 283.6)
XYZxyz(8.1937, 5.5588, 25.8353)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40358D #828D35
analogous
#35568D #40358D #6C358D
triadic
#40358D #8D4035 #358D40
tetradic
#40358D #8D3556 #828D35 #358D6C
square
#40358D #8D3556 #828D35 #358D6C
split-complementary
#40358D #8D6C35 #568D35
monochromatic
#181434 #2C2461 #40358D #5446B9 #7D72CA

Accessibility & contrast

On white

9.94
#40358D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#40358D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40358D
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40358D#FFFFFF#000000##FFFFFF
##40358D1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#1F4A5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40358d;
/* rgb */ color: rgb(64, 53, 141);
/* oklch */ color: oklch(39.4% 0.140 283.6);
Tailwind
colors: {
  custom: {
    50: '#7c6daf',
    500: '#40358d',
    950: '#000000',
  },
}
SCSS
$custom: #40358d;
$custom-light: #7c6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#40358d",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 141
  },
  "hsl": {
    "h": 247.5,
    "s": 45.361,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39416,
    "c": 0.14009,
    "h": 283.6
  },
  "luminance": 0.05559
}

Semantic roles & 50–950 ramp

primary
#40358D
secondary
#AAB26B
accent
#D553C5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #40358D

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

Preview Lab → · Contrast checker → · Palette generator →

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