#40349F#40349F

#40349F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.8% C 0.166 H 281.2°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#40349F
RGBrgb(64, 52, 159)
HSLhsl(247, 51%, 41%)
HSVhsv(247, 67%, 62%)
CMYKcmyk(59.7%, 67.3%, 0%, 37.6%)
CIE-LABlab(29.53, 36.57, -56.45)
CIE-LCHlch(29.53, 67.26, 302.94°)
OKLaboklab(40.8% 0.0322 -0.1625)
OKLCHoklch(40.8% 0.166 281.2)
XYZxyz(9.5984, 6.0485, 33.4559)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40349F #939F34
analogous
#345E9F #40349F #76349F
triadic
#40349F #9F4034 #349F40
tetradic
#40349F #9F345E #939F34 #349F76
square
#40349F #9F345E #939F34 #349F76
split-complementary
#40349F #9F7634 #5E9F34
monochromatic
#1B1643 #2D2571 #40349F #594CC4 #847AD3

Accessibility & contrast

On white

9.50
#40349F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#40349F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40349F
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40349F#FFFFFF#000000##FFFFFF
##40349F1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #40349f;
/* rgb */ color: rgb(64, 52, 159);
/* oklch */ color: oklch(40.8% 0.166 281.2);
Tailwind
colors: {
  custom: {
    50: '#7f6cbc',
    500: '#40349f',
    950: '#000000',
  },
}
SCSS
$custom: #40349f;
$custom-light: #7f6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#40349f",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 159
  },
  "hsl": {
    "h": 246.729,
    "s": 50.711,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40803,
    "c": 0.16566,
    "h": 281.2
  },
  "luminance": 0.06049
}

Semantic roles & 50–950 ramp

primary
#40349F
secondary
#B4BC73
accent
#DA4ECA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #40349F

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

Preview Lab → · Contrast checker → · Palette generator →

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