#40539C#40539C

#40539C is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.5% C 0.120 H 270.2°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#40539C
RGBrgb(64, 83, 156)
HSLhsl(228, 42%, 43%)
HSVhsv(228, 59%, 61%)
CMYKcmyk(59%, 46.8%, 0%, 38.8%)
CIE-LABlab(37.25, 15.63, -42.15)
CIE-LCHlch(37.25, 44.95, 290.35°)
OKLaboklab(46.48% 0.0004 -0.1202)
OKLCHoklch(46.48% 0.12 270.2)
XYZxyz(11.2064, 9.6759, 32.7231)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40539C #9C8940
analogous
#40819C #40539C #5B409C
triadic
#40539C #9C4053 #539C40
tetradic
#40539C #9C4081 #9C8940 #409C5B
square
#40539C #9C4081 #9C8940 #409C5B
split-complementary
#40539C #9C5B40 #819C40
monochromatic
#1C2545 #2E3C71 #40539C #5D71BC #8897CE

Accessibility & contrast

On white

7.15
#40539C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#40539C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40539C
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40539C#FFFFFF#000000##FFFFFF
##40539C1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315C9F
Deuteranopia (green-blind)
#24549A
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #40539c;
/* rgb */ color: rgb(64, 83, 156);
/* oklch */ color: oklch(46.5% 0.120 270.2);
Tailwind
colors: {
  custom: {
    50: '#7d83ba',
    500: '#40539c',
    950: '#000000',
  },
}
SCSS
$custom: #40539c;
$custom-light: #7d83ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40539c",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 156
  },
  "hsl": {
    "h": 227.609,
    "s": 41.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46481,
    "c": 0.1202,
    "h": 270.2
  },
  "luminance": 0.09677
}

Semantic roles & 50–950 ramp

primary
#40539C
secondary
#B9AD7F
accent
#B856D2
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #40539C

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

Preview Lab → · Contrast checker → · Palette generator →

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