#40438D#40438D

#40438D is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.120 H 278.1°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#40438D
RGBrgb(64, 67, 141)
HSLhsl(238, 38%, 40%)
HSVhsv(238, 55%, 55%)
CMYKcmyk(54.6%, 52.5%, 0%, 44.7%)
CIE-LABlab(31.87, 20.96, -41.68)
CIE-LCHlch(31.87, 46.65, 296.70°)
OKLaboklab(42.09% 0.017 -0.119)
OKLCHoklch(42.09% 0.12 278.1)
XYZxyz(8.9277, 7.0268, 26.0800)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40438D #8D8A40
analogous
#406A8D #40438D #63408D
triadic
#40438D #8D4043 #438D40
tetradic
#40438D #8D406A #8D8A40 #408D63
square
#40438D #8D406A #8D8A40 #408D63
split-complementary
#40438D #8D6340 #6A8D40
monochromatic
#1A1B39 #2D2F63 #40438D #575BB3 #8184C6

Accessibility & contrast

On white

8.73
#40438D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#40438D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40438D
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40438D#FFFFFF#000000##FFFFFF
##40438D1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4E90
Deuteranopia (green-blind)
#13488B
Tritanopia (blue-blind)
#1D5361
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #40438d;
/* rgb */ color: rgb(64, 67, 141);
/* oklch */ color: oklch(42.1% 0.120 278.1);
Tailwind
colors: {
  custom: {
    50: '#7b77af',
    500: '#40438d',
    950: '#000000',
  },
}
SCSS
$custom: #40438d;
$custom-light: #7b77af;
$custom-dark: #000000;
JSON
{
  "hex": "#40438d",
  "rgb": {
    "r": 64,
    "g": 67,
    "b": 141
  },
  "hsl": {
    "h": 237.662,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42088,
    "c": 0.12018,
    "h": 278.1
  },
  "luminance": 0.07027
}

Semantic roles & 50–950 ramp

primary
#40438D
secondary
#B0AE78
accent
#C95ACE
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #40438D

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

Preview Lab → · Contrast checker → · Palette generator →

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