#40367A#40367A

#40367A is a dark, moderate blue. Relative luminance 0.051; OKLCH L 38.1% C 0.111 H 286.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#40367A
RGBrgb(64, 54, 122)
HSLhsl(249, 39%, 35%)
HSVhsv(249, 56%, 48%)
CMYKcmyk(47.5%, 55.7%, 0%, 52.2%)
CIE-LABlab(27.11, 23.21, -37.50)
CIE-LCHlch(27.11, 44.10, 301.76°)
OKLaboklab(38.11% 0.0318 -0.1068)
OKLCHoklch(38.11% 0.111 286.6)
XYZxyz(6.9454, 5.1332, 19.0334)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40367A #707A36
analogous
#364E7A #40367A #62367A
triadic
#40367A #7A4036 #367A40
tetradic
#40367A #7A364E #707A36 #367A62
square
#40367A #7A364E #707A36 #367A62
split-complementary
#40367A #7A6236 #4E7A36
monochromatic
#131025 #2A2350 #40367A #5649A4 #786CBE

Accessibility & contrast

On white

10.36
#40367A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40367A
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40367A#FFFFFF#000000##FFFFFF
##40367A1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14427C
Deuteranopia (green-blind)
#123E79
Tritanopia (blue-blind)
#2D4552
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40367a;
/* rgb */ color: rgb(64, 54, 122);
/* oklch */ color: oklch(38.1% 0.111 286.6);
Tailwind
colors: {
  custom: {
    50: '#796da1',
    500: '#40367a',
    950: '#000000',
  },
}
SCSS
$custom: #40367a;
$custom-light: #796da1;
$custom-dark: #000000;
JSON
{
  "hex": "#40367a",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 122
  },
  "hsl": {
    "h": 248.824,
    "s": 38.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38111,
    "c": 0.11142,
    "h": 286.6
  },
  "luminance": 0.05133
}

Semantic roles & 50–950 ramp

primary
#40367A
secondary
#9DA765
accent
#CF59BD
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09070F
muted
#7B7A7E

Preview Lab

Preview with #40367A

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

Preview Lab → · Contrast checker → · Palette generator →

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