#40339C#40339C

#40339C is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.4% C 0.163 H 281.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#40339C
RGBrgb(64, 51, 156)
HSLhsl(247, 51%, 41%)
HSVhsv(247, 67%, 61%)
CMYKcmyk(59%, 67.3%, 0%, 38.8%)
CIE-LABlab(29.05, 36.20, -55.42)
CIE-LCHlch(29.05, 66.19, 303.15°)
OKLaboklab(40.37% 0.0335 -0.1595)
OKLCHoklch(40.37% 0.163 281.9)
XYZxyz(9.2971, 5.8573, 32.0867)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40339C #8F9C33
analogous
#335A9C #40339C #75339C
triadic
#40339C #9C4033 #339C40
tetradic
#40339C #9C335A #8F9C33 #339C75
square
#40339C #9C335A #8F9C33 #339C75
split-complementary
#40339C #9C7533 #5A9C33
monochromatic
#1A1540 #2D246E #40339C #5849C3 #8277D3

Accessibility & contrast

On white

9.67
#40339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#40339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40339C
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40339C#FFFFFF#000000##FFFFFF
##40339C1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#084E63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #40339c;
/* rgb */ color: rgb(64, 51, 156);
/* oklch */ color: oklch(40.4% 0.163 281.9);
Tailwind
colors: {
  custom: {
    50: '#7f6cba',
    500: '#40339c',
    950: '#000000',
  },
}
SCSS
$custom: #40339c;
$custom-light: #7f6cba;
$custom-dark: #000000;
JSON
{
  "hex": "#40339c",
  "rgb": {
    "r": 64,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 247.429,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40371,
    "c": 0.16296,
    "h": 281.9
  },
  "luminance": 0.05858
}

Semantic roles & 50–950 ramp

primary
#40339C
secondary
#B2BB70
accent
#DA4EC9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #40339C

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

Preview Lab → · Contrast checker → · Palette generator →

#40339C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva