#40399D#40399D

#40399D is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.5% C 0.157 H 280.2°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#40399D
RGBrgb(64, 57, 157)
HSLhsl(244, 47%, 42%)
HSVhsv(244, 64%, 62%)
CMYKcmyk(59.2%, 63.7%, 0%, 38.4%)
CIE-LABlab(30.52, 32.83, -53.63)
CIE-LCHlch(30.52, 62.88, 301.47°)
OKLaboklab(41.47% 0.0278 -0.1542)
OKLCHoklch(41.47% 0.157 280.2)
XYZxyz(9.6614, 6.4499, 32.6276)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40399D #969D39
analogous
#39649D #40399D #72399D
triadic
#40399D #9D4039 #399D40
tetradic
#40399D #9D3964 #969D39 #399D72
square
#40399D #9D3964 #969D39 #399D72
split-complementary
#40399D #9D7239 #649D39
monochromatic
#1B1843 #2E2970 #40399D #5A53C0 #8580D1

Accessibility & contrast

On white

9.17
#40399D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#40399D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40399D
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40399D#FFFFFF#000000##FFFFFF
##40399D1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#035265
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #40399d;
/* rgb */ color: rgb(64, 57, 157);
/* oklch */ color: oklch(41.5% 0.157 280.2);
Tailwind
colors: {
  custom: {
    50: '#7f70bb',
    500: '#40399d',
    950: '#000000',
  },
}
SCSS
$custom: #40399d;
$custom-light: #7f70bb;
$custom-dark: #000000;
JSON
{
  "hex": "#40399d",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 157
  },
  "hsl": {
    "h": 244.2,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41467,
    "c": 0.15669,
    "h": 280.2
  },
  "luminance": 0.06451
}

Semantic roles & 50–950 ramp

primary
#40399D
secondary
#B6BA78
accent
#D651CD
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #40399D

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

Preview Lab → · Contrast checker → · Palette generator →

#40399D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva