#40367C#40367C

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

Color values

HEX#40367C
RGBrgb(64, 54, 124)
HSLhsl(249, 39%, 35%)
HSVhsv(249, 56%, 49%)
CMYKcmyk(48.4%, 56.5%, 0%, 51.4%)
CIE-LABlab(27.25, 23.86, -38.53)
CIE-LCHlch(27.25, 45.32, 301.77°)
OKLaboklab(38.26% 0.0319 -0.1098)
OKLCHoklch(38.26% 0.114 286.2)
XYZxyz(7.0706, 5.1833, 19.6928)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40367C #727C36
analogous
#364F7C #40367C #63367C
triadic
#40367C #7C4036 #367C40
tetradic
#40367C #7C364F #727C36 #367C63
square
#40367C #7C364F #727C36 #367C63
split-complementary
#40367C #7C6336 #4F7C36
monochromatic
#141127 #2A2351 #40367C #5649A7 #796DBF

Accessibility & contrast

On white

10.31
#40367C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40367C
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40367C#FFFFFF#000000##FFFFFF
##40367C1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10427E
Deuteranopia (green-blind)
#0F3E7A
Tritanopia (blue-blind)
#2C4553
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40367c;
/* rgb */ color: rgb(64, 54, 124);
/* oklch */ color: oklch(38.3% 0.114 286.2);
Tailwind
colors: {
  custom: {
    50: '#796da2',
    500: '#40367c',
    950: '#000000',
  },
}
SCSS
$custom: #40367c;
$custom-light: #796da2;
$custom-dark: #000000;
JSON
{
  "hex": "#40367c",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 124
  },
  "hsl": {
    "h": 248.571,
    "s": 39.326,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3826,
    "c": 0.11437,
    "h": 286.2
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#40367C
secondary
#9FA866
accent
#CF59BE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #40367C

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

Preview Lab → · Contrast checker → · Palette generator →

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