#40349E#40349E

#40349E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.7% C 0.164 H 281.3°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#40349E
RGBrgb(64, 52, 158)
HSLhsl(247, 50%, 41%)
HSVhsv(247, 67%, 62%)
CMYKcmyk(59.5%, 67.1%, 0%, 38%)
CIE-LABlab(29.45, 36.24, -55.99)
CIE-LCHlch(29.45, 66.69, 302.92°)
OKLaboklab(40.71% 0.0323 -0.1611)
OKLCHoklch(40.71% 0.164 281.3)
XYZxyz(9.5120, 6.0139, 33.0007)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40349E #929E34
analogous
#345D9E #40349E #75349E
triadic
#40349E #9E4034 #349E40
tetradic
#40349E #9E345D #929E34 #349E75
square
#40349E #9E345D #929E34 #349E75
split-complementary
#40349E #9E7534 #5D9E34
monochromatic
#1B1642 #2D2570 #40349E #594BC4 #8479D3

Accessibility & contrast

On white

9.53
#40349E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#40349E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40349E
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40349E#FFFFFF#000000##FFFFFF
##40349E1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#024F64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #40349e;
/* rgb */ color: rgb(64, 52, 158);
/* oklch */ color: oklch(40.7% 0.164 281.3);
Tailwind
colors: {
  custom: {
    50: '#7f6cbc',
    500: '#40349e',
    950: '#000000',
  },
}
SCSS
$custom: #40349e;
$custom-light: #7f6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#40349e",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 158
  },
  "hsl": {
    "h": 246.792,
    "s": 50.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40713,
    "c": 0.16434,
    "h": 281.3
  },
  "luminance": 0.06015
}

Semantic roles & 50–950 ramp

primary
#40349E
secondary
#B3BC72
accent
#DA4ECA
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #40349E

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

Preview Lab → · Contrast checker → · Palette generator →

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