#40367B#40367B

#40367B is a dark, moderate blue. Relative luminance 0.052; OKLCH L 38.2% C 0.113 H 286.4°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#40367B
RGBrgb(64, 54, 123)
HSLhsl(249, 39%, 35%)
HSVhsv(249, 56%, 48%)
CMYKcmyk(48%, 56.1%, 0%, 51.8%)
CIE-LABlab(27.18, 23.54, -38.02)
CIE-LCHlch(27.18, 44.71, 301.76°)
OKLaboklab(38.19% 0.0319 -0.1083)
OKLCHoklch(38.19% 0.113 286.4)
XYZxyz(7.0076, 5.1581, 19.3614)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40367B #717B36
analogous
#364E7B #40367B #63367B
triadic
#40367B #7B4036 #367B40
tetradic
#40367B #7B364E #717B36 #367B63
square
#40367B #7B364E #717B36 #367B63
split-complementary
#40367B #7B6336 #4E7B36
monochromatic
#141126 #2A2350 #40367B #5649A6 #796DBF

Accessibility & contrast

On white

10.34
#40367B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#40367B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40367B
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40367B#FFFFFF#000000##FFFFFF
##40367B1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12427D
Deuteranopia (green-blind)
#113E79
Tritanopia (blue-blind)
#2D4553
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40367b;
/* rgb */ color: rgb(64, 54, 123);
/* oklch */ color: oklch(38.2% 0.113 286.4);
Tailwind
colors: {
  custom: {
    50: '#796da2',
    500: '#40367b',
    950: '#000000',
  },
}
SCSS
$custom: #40367b;
$custom-light: #796da2;
$custom-dark: #000000;
JSON
{
  "hex": "#40367b",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 123
  },
  "hsl": {
    "h": 248.696,
    "s": 38.983,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38185,
    "c": 0.1129,
    "h": 286.4
  },
  "luminance": 0.05158
}

Semantic roles & 50–950 ramp

primary
#40367B
secondary
#9EA765
accent
#CF59BE
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #40367B

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

Preview Lab → · Contrast checker → · Palette generator →

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