#40367F#40367F

#40367F is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.5% C 0.119 H 285.6°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#40367F
RGBrgb(64, 54, 127)
HSLhsl(248, 40%, 35%)
HSVhsv(248, 57%, 50%)
CMYKcmyk(49.6%, 57.5%, 0%, 50.2%)
CIE-LABlab(27.46, 24.83, -40.08)
CIE-LCHlch(27.46, 47.15, 301.78°)
OKLaboklab(38.49% 0.032 -0.1144)
OKLCHoklch(38.49% 0.119 285.6)
XYZxyz(7.2632, 5.2603, 20.7072)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40367F #757F36
analogous
#36507F #40367F #64367F
triadic
#40367F #7F4036 #367F40
tetradic
#40367F #7F3650 #757F36 #367F64
square
#40367F #7F3650 #757F36 #367F64
split-complementary
#40367F #7F6436 #507F36
monochromatic
#151129 #2A2454 #40367F #5648AA #796EC1

Accessibility & contrast

On white

10.23
#40367F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40367F
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40367F#FFFFFF#000000##FFFFFF
##40367F1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4381
Deuteranopia (green-blind)
#073F7D
Tritanopia (blue-blind)
#2A4655
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #40367f;
/* rgb */ color: rgb(64, 54, 127);
/* oklch */ color: oklch(38.5% 0.119 285.6);
Tailwind
colors: {
  custom: {
    50: '#7a6da5',
    500: '#40367f',
    950: '#000000',
  },
}
SCSS
$custom: #40367f;
$custom-light: #7a6da5;
$custom-dark: #000000;
JSON
{
  "hex": "#40367f",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 127
  },
  "hsl": {
    "h": 248.219,
    "s": 40.331,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38486,
    "c": 0.11875,
    "h": 285.6
  },
  "luminance": 0.05261
}

Semantic roles & 50–950 ramp

primary
#40367F
secondary
#A1AA67
accent
#D058C0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #40367F

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

Preview Lab → · Contrast checker → · Palette generator →

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