#40347E#40347E

#40347E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.120 H 286.6°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#40347E
RGBrgb(64, 52, 126)
HSLhsl(250, 42%, 35%)
HSVhsv(250, 59%, 49%)
CMYKcmyk(49.2%, 58.7%, 0%, 50.6%)
CIE-LABlab(26.88, 25.81, -40.39)
CIE-LCHlch(26.88, 47.93, 302.58°)
OKLaboklab(38.03% 0.0345 -0.1153)
OKLCHoklch(38.03% 0.12 286.6)
XYZxyz(7.1071, 5.0520, 20.3353)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40347E #727E34
analogous
#344D7E #40347E #65347E
triadic
#40347E #7E4034 #347E40
tetradic
#40347E #7E344D #727E34 #347E65
square
#40347E #7E344D #727E34 #347E65
split-complementary
#40347E #7E6534 #4D7E34
monochromatic
#141027 #2A2253 #40347E #5646A9 #796BC2

Accessibility & contrast

On white

10.45
#40347E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#40347E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40347E
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40347E#FFFFFF#000000##FFFFFF
##40347E1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044180
Deuteranopia (green-blind)
#033D7C
Tritanopia (blue-blind)
#2B4553
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40347e;
/* rgb */ color: rgb(64, 52, 126);
/* oklch */ color: oklch(38.0% 0.120 286.6);
Tailwind
colors: {
  custom: {
    50: '#7a6ca4',
    500: '#40347e',
    950: '#000000',
  },
}
SCSS
$custom: #40347e;
$custom-light: #7a6ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#40347e",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 126
  },
  "hsl": {
    "h": 249.73,
    "s": 41.573,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38033,
    "c": 0.12032,
    "h": 286.6
  },
  "luminance": 0.05052
}

Semantic roles & 50–950 ramp

primary
#40347E
secondary
#9FAA64
accent
#D156BD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #40347E

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

Preview Lab → · Contrast checker → · Palette generator →

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