#40368F#40368F

#40368F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.8% C 0.141 H 283.0°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#40368F
RGBrgb(64, 54, 143)
HSLhsl(247, 45%, 39%)
HSVhsv(247, 62%, 56%)
CMYKcmyk(55.2%, 62.2%, 0%, 43.9%)
CIE-LABlab(28.67, 30.08, -48.07)
CIE-LCHlch(28.67, 56.71, 302.03°)
OKLaboklab(39.76% 0.0317 -0.1379)
OKLCHoklch(39.76% 0.141 283)
XYZxyz(8.3899, 5.7110, 26.6415)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40368F #858F36
analogous
#36588F #40368F #6C368F
triadic
#40368F #8F4036 #368F40
tetradic
#40368F #8F3658 #858F36 #368F6C
square
#40368F #8F3658 #858F36 #368F6C
split-complementary
#40368F #8F6C36 #588F36
monochromatic
#181436 #2C2563 #40368F #5548BA #7E75CB

Accessibility & contrast

On white

9.80
#40368F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#40368F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40368F
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40368F#FFFFFF#000000##FFFFFF
##40368F1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#1D4B5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #40368f;
/* rgb */ color: rgb(64, 54, 143);
/* oklch */ color: oklch(39.8% 0.141 283.0);
Tailwind
colors: {
  custom: {
    50: '#7c6db0',
    500: '#40368f',
    950: '#000000',
  },
}
SCSS
$custom: #40368f;
$custom-light: #7c6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#40368f",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 143
  },
  "hsl": {
    "h": 246.742,
    "s": 45.178,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39759,
    "c": 0.14148,
    "h": 283
  },
  "luminance": 0.05711
}

Semantic roles & 50–950 ramp

primary
#40368F
secondary
#ACB36D
accent
#D553C6
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #40368F

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

Preview Lab → · Contrast checker → · Palette generator →

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