#40388C#40388C

#40388C is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.134 H 282.7°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#40388C
RGBrgb(64, 56, 140)
HSLhsl(246, 43%, 38%)
HSVhsv(246, 60%, 55%)
CMYKcmyk(54.3%, 60%, 0%, 45.1%)
CIE-LABlab(28.93, 27.81, -45.80)
CIE-LCHlch(28.93, 53.58, 301.26°)
OKLaboklab(39.88% 0.0297 -0.1312)
OKLCHoklch(39.88% 0.134 282.7)
XYZxyz(8.2607, 5.8113, 25.4923)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40388C #848C38
analogous
#385A8C #40388C #6A388C
triadic
#40388C #8C4038 #388C40
tetradic
#40388C #8C385A #848C38 #388C6A
square
#40388C #8C385A #848C38 #388C6A
split-complementary
#40388C #8C6A38 #5A8C38
monochromatic
#181535 #2C2760 #40388C #554AB7 #7E76C8

Accessibility & contrast

On white

9.71
#40388C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#40388C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40388C
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40388C#FFFFFF#000000##FFFFFF
##40388C1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#204C5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #40388c;
/* rgb */ color: rgb(64, 56, 140);
/* oklch */ color: oklch(39.9% 0.134 282.7);
Tailwind
colors: {
  custom: {
    50: '#7c6fae',
    500: '#40388c',
    950: '#000000',
  },
}
SCSS
$custom: #40388c;
$custom-light: #7c6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#40388c",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 140
  },
  "hsl": {
    "h": 245.714,
    "s": 42.857,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39877,
    "c": 0.13449,
    "h": 282.7
  },
  "luminance": 0.05812
}

Semantic roles & 50–950 ramp

primary
#40388C
secondary
#ABB16F
accent
#D355C7
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #40388C

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

Preview Lab → · Contrast checker → · Palette generator →

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