#40348B#40348B

#40348B is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.1% C 0.139 H 284.2°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#40348B
RGBrgb(64, 52, 139)
HSLhsl(248, 46%, 37%)
HSVhsv(248, 63%, 55%)
CMYKcmyk(54%, 62.6%, 0%, 45.5%)
CIE-LABlab(27.87, 30.03, -46.90)
CIE-LCHlch(27.87, 55.69, 302.63°)
OKLaboklab(39.07% 0.0341 -0.1344)
OKLCHoklch(39.07% 0.139 284.2)
XYZxyz(8.0011, 5.4096, 25.0436)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40348B #7F8B34
analogous
#34538B #40348B #6C348B
triadic
#40348B #8B4034 #348B40
tetradic
#40348B #8B3453 #7F8B34 #348B6C
square
#40348B #8B3453 #7F8B34 #348B6C
split-complementary
#40348B #8B6C34 #538B34
monochromatic
#171332 #2B235E #40348B #5545B8 #7C70C9

Accessibility & contrast

On white

10.09
#40348B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#40348B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40348B
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40348B#FFFFFF#000000##FFFFFF
##40348B1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#21495A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #40348b;
/* rgb */ color: rgb(64, 52, 139);
/* oklch */ color: oklch(39.1% 0.139 284.2);
Tailwind
colors: {
  custom: {
    50: '#7c6cae',
    500: '#40348b',
    950: '#000000',
  },
}
SCSS
$custom: #40348b;
$custom-light: #7c6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#40348b",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 139
  },
  "hsl": {
    "h": 248.276,
    "s": 45.55,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39073,
    "c": 0.1387,
    "h": 284.2
  },
  "luminance": 0.0541
}

Semantic roles & 50–950 ramp

primary
#40348B
secondary
#A8B269
accent
#D553C3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #40348B

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

Preview Lab → · Contrast checker → · Palette generator →

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