#40348F#40348F

#40348F is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.4% C 0.144 H 283.6°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#40348F
RGBrgb(64, 52, 143)
HSLhsl(248, 47%, 38%)
HSVhsv(248, 64%, 56%)
CMYKcmyk(55.2%, 63.6%, 0%, 43.9%)
CIE-LABlab(28.19, 31.34, -48.85)
CIE-LCHlch(28.19, 58.04, 302.68°)
OKLaboklab(39.41% 0.0338 -0.1402)
OKLCHoklch(39.41% 0.144 283.6)
XYZxyz(8.2988, 5.5287, 26.6111)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40348F #838F34
analogous
#34558F #40348F #6D348F
triadic
#40348F #8F4034 #348F40
tetradic
#40348F #8F3455 #838F34 #348F6D
square
#40348F #8F3455 #838F34 #348F6D
split-complementary
#40348F #8F6D34 #558F34
monochromatic
#181335 #2C2462 #40348F #5445BB #7E72CC

Accessibility & contrast

On white

9.97
#40348F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#40348F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40348F
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40348F#FFFFFF#000000##FFFFFF
##40348F1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#1D4A5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #40348f;
/* rgb */ color: rgb(64, 52, 143);
/* oklch */ color: oklch(39.4% 0.144 283.6);
Tailwind
colors: {
  custom: {
    50: '#7d6cb1',
    500: '#40348f',
    950: '#000000',
  },
}
SCSS
$custom: #40348f;
$custom-light: #7d6cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#40348f",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 143
  },
  "hsl": {
    "h": 247.912,
    "s": 46.667,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39408,
    "c": 0.14422,
    "h": 283.6
  },
  "luminance": 0.05529
}

Semantic roles & 50–950 ramp

primary
#40348F
secondary
#AAB46B
accent
#D651C5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #40348F

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

Preview Lab → · Contrast checker → · Palette generator →

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