#40368E#40368E

#40368E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.7% C 0.140 H 283.1°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#40368E
RGBrgb(64, 54, 142)
HSLhsl(247, 45%, 38%)
HSVhsv(247, 62%, 56%)
CMYKcmyk(54.9%, 62%, 0%, 44.3%)
CIE-LABlab(28.59, 29.75, -47.58)
CIE-LCHlch(28.59, 56.12, 302.01°)
OKLaboklab(39.68% 0.0318 -0.1364)
OKLCHoklch(39.68% 0.14 283.1)
XYZxyz(8.3145, 5.6808, 26.2443)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40368E #848E36
analogous
#36588E #40368E #6C368E
triadic
#40368E #8E4036 #368E40
tetradic
#40368E #8E3658 #848E36 #368E6C
square
#40368E #8E3658 #848E36 #368E6C
split-complementary
#40368E #8E6C36 #588E36
monochromatic
#181435 #2C2562 #40368E #5548B9 #7E74CA

Accessibility & contrast

On white

9.83
#40368E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40368E
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40368E#FFFFFF#000000##FFFFFF
##40368E1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#1E4B5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40368e;
/* rgb */ color: rgb(64, 54, 142);
/* oklch */ color: oklch(39.7% 0.140 283.1);
Tailwind
colors: {
  custom: {
    50: '#7c6db0',
    500: '#40368e',
    950: '#000000',
  },
}
SCSS
$custom: #40368e;
$custom-light: #7c6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#40368e",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 142
  },
  "hsl": {
    "h": 246.818,
    "s": 44.898,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39677,
    "c": 0.14009,
    "h": 283.1
  },
  "luminance": 0.05681
}

Semantic roles & 50–950 ramp

primary
#40368E
secondary
#ABB36D
accent
#D553C6
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #40368E

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

Preview Lab → · Contrast checker → · Palette generator →

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