#405299#405299

#405299 is a mid, moderate blue. Relative luminance 0.094; OKLCH L 46.1% C 0.117 H 270.5°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#405299
RGBrgb(64, 82, 153)
HSLhsl(228, 41%, 43%)
HSVhsv(228, 58%, 60%)
CMYKcmyk(58.2%, 46.4%, 0%, 40%)
CIE-LABlab(36.79, 15.24, -41.09)
CIE-LCHlch(36.79, 43.82, 290.35°)
OKLaboklab(46.07% 0.0011 -0.1171)
OKLCHoklch(46.07% 0.117 270.5)
XYZxyz(10.8795, 9.4237, 31.3765)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405299 #998740
analogous
#407F99 #405299 #5A4099
triadic
#405299 #994052 #529940
tetradic
#405299 #99407F #998740 #40995A
square
#405299 #99407F #998740 #40995A
split-complementary
#405299 #995A40 #7F9940
monochromatic
#1C2443 #2E3B6E #405299 #5C6FBB #8795CD

Accessibility & contrast

On white

7.28
#405299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#405299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405299
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405299#FFFFFF#000000##FFFFFF
##4052991.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325B9C
Deuteranopia (green-blind)
#255397
Tritanopia (blue-blind)
#03626E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #405299;
/* rgb */ color: rgb(64, 82, 153);
/* oklch */ color: oklch(46.1% 0.117 270.5);
Tailwind
colors: {
  custom: {
    50: '#7c82b7',
    500: '#405299',
    950: '#000000',
  },
}
SCSS
$custom: #405299;
$custom-light: #7c82b7;
$custom-dark: #000000;
JSON
{
  "hex": "#405299",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 153
  },
  "hsl": {
    "h": 227.865,
    "s": 41.014,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46065,
    "c": 0.11711,
    "h": 270.5
  },
  "luminance": 0.09424
}

Semantic roles & 50–950 ramp

primary
#405299
secondary
#B7AC7E
accent
#B857D1
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #405299

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

Preview Lab → · Contrast checker → · Palette generator →

#405299 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva