#40367D#40367D

#40367D is a dark, moderate blue. Relative luminance 0.052; OKLCH L 38.3% C 0.116 H 286.0°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#40367D
RGBrgb(64, 54, 125)
HSLhsl(248, 40%, 35%)
HSVhsv(248, 57%, 49%)
CMYKcmyk(48.8%, 56.8%, 0%, 51%)
CIE-LABlab(27.32, 24.18, -39.05)
CIE-LCHlch(27.32, 45.93, 301.77°)
OKLaboklab(38.34% 0.0319 -0.1113)
OKLCHoklch(38.34% 0.116 286)
XYZxyz(7.1341, 5.2087, 20.0275)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40367D #737D36
analogous
#364F7D #40367D #64367D
triadic
#40367D #7D4036 #367D40
tetradic
#40367D #7D364F #737D36 #367D64
square
#40367D #7D364F #737D36 #367D64
split-complementary
#40367D #7D6436 #4F7D36
monochromatic
#141128 #2A2452 #40367D #5648A8 #796DC0

Accessibility & contrast

On white

10.29
#40367D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#40367D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40367D
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40367D#FFFFFF#000000##FFFFFF
##40367D1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F427F
Deuteranopia (green-blind)
#0C3E7B
Tritanopia (blue-blind)
#2C4654
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #40367d;
/* rgb */ color: rgb(64, 54, 125);
/* oklch */ color: oklch(38.3% 0.116 286.0);
Tailwind
colors: {
  custom: {
    50: '#7a6da3',
    500: '#40367d',
    950: '#000000',
  },
}
SCSS
$custom: #40367d;
$custom-light: #7a6da3;
$custom-dark: #000000;
JSON
{
  "hex": "#40367d",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 125
  },
  "hsl": {
    "h": 248.451,
    "s": 39.665,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38335,
    "c": 0.11583,
    "h": 286
  },
  "luminance": 0.05209
}

Semantic roles & 50–950 ramp

primary
#40367D
secondary
#9FA966
accent
#D058BF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #40367D

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

Preview Lab → · Contrast checker → · Palette generator →

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