#40367E#40367E

#40367E is a dark, moderate blue. Relative luminance 0.052; OKLCH L 38.4% C 0.117 H 285.8°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#40367E
RGBrgb(64, 54, 126)
HSLhsl(248, 40%, 35%)
HSVhsv(248, 57%, 49%)
CMYKcmyk(49.2%, 57.1%, 0%, 50.6%)
CIE-LABlab(27.39, 24.51, -39.56)
CIE-LCHlch(27.39, 46.54, 301.78°)
OKLaboklab(38.41% 0.032 -0.1128)
OKLCHoklch(38.41% 0.117 285.8)
XYZxyz(7.1983, 5.2344, 20.3657)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40367E #747E36
analogous
#36507E #40367E #64367E
triadic
#40367E #7E4036 #367E40
tetradic
#40367E #7E3650 #747E36 #367E64
square
#40367E #7E3650 #747E36 #367E64
split-complementary
#40367E #7E6436 #507E36
monochromatic
#141128 #2A2453 #40367E #5648A9 #796EC1

Accessibility & contrast

On white

10.26
#40367E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#40367E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40367E
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40367E#FFFFFF#000000##FFFFFF
##40367E1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4380
Deuteranopia (green-blind)
#0A3F7C
Tritanopia (blue-blind)
#2B4654
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #40367e;
/* rgb */ color: rgb(64, 54, 126);
/* oklch */ color: oklch(38.4% 0.117 285.8);
Tailwind
colors: {
  custom: {
    50: '#7a6da4',
    500: '#40367e',
    950: '#000000',
  },
}
SCSS
$custom: #40367e;
$custom-light: #7a6da4;
$custom-dark: #000000;
JSON
{
  "hex": "#40367e",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 126
  },
  "hsl": {
    "h": 248.333,
    "s": 40,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3841,
    "c": 0.11729,
    "h": 285.8
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#40367E
secondary
#A0A967
accent
#D058BF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #40367E

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

Preview Lab → · Contrast checker → · Palette generator →

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