#40348D#40348D

#40348D is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.2% C 0.141 H 283.9°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#40348D
RGBrgb(64, 52, 141)
HSLhsl(248, 46%, 38%)
HSVhsv(248, 63%, 55%)
CMYKcmyk(54.6%, 63.1%, 0%, 44.7%)
CIE-LABlab(28.03, 30.69, -47.88)
CIE-LCHlch(28.03, 56.87, 302.66°)
OKLaboklab(39.24% 0.034 -0.1373)
OKLCHoklch(39.24% 0.141 283.9)
XYZxyz(8.1486, 5.4686, 25.8203)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40348D #818D34
analogous
#34548D #40348D #6C348D
triadic
#40348D #8D4034 #348D40
tetradic
#40348D #8D3454 #818D34 #348D6C
square
#40348D #8D3454 #818D34 #348D6C
split-complementary
#40348D #8D6C34 #548D34
monochromatic
#171334 #2C2460 #40348D #5444BA #7D71CB

Accessibility & contrast

On white

10.03
#40348D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#40348D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40348D
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40348D#FFFFFF#000000##FFFFFF
##40348D1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#20495B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #40348d;
/* rgb */ color: rgb(64, 52, 141);
/* oklch */ color: oklch(39.2% 0.141 283.9);
Tailwind
colors: {
  custom: {
    50: '#7c6caf',
    500: '#40348d',
    950: '#000000',
  },
}
SCSS
$custom: #40348d;
$custom-light: #7c6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#40348d",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 141
  },
  "hsl": {
    "h": 248.09,
    "s": 46.114,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3924,
    "c": 0.14146,
    "h": 283.9
  },
  "luminance": 0.05469
}

Semantic roles & 50–950 ramp

primary
#40348D
secondary
#A9B36A
accent
#D652C4
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #40348D

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

Preview Lab → · Contrast checker → · Palette generator →

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