#405199#405199

#405199 is a mid, moderate blue. Relative luminance 0.093; OKLCH L 45.9% C 0.118 H 271.1°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#405199
RGBrgb(64, 81, 153)
HSLhsl(229, 41%, 43%)
HSVhsv(229, 58%, 60%)
CMYKcmyk(58.2%, 47.1%, 0%, 40%)
CIE-LABlab(36.51, 15.89, -41.54)
CIE-LCHlch(36.51, 44.48, 290.93°)
OKLaboklab(45.85% 0.0022 -0.1184)
OKLCHoklch(45.85% 0.118 271.1)
XYZxyz(10.8047, 9.2739, 31.3515)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405199 #998840
analogous
#407E99 #405199 #5B4099
triadic
#405199 #994051 #519940
tetradic
#405199 #99407E #998840 #40995B
square
#405199 #99407E #998840 #40995B
split-complementary
#405199 #995B40 #7E9940
monochromatic
#1C2343 #2E3A6E #405199 #5C6EBB #8794CD

Accessibility & contrast

On white

7.36
#405199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#405199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405199
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405199#FFFFFF#000000##FFFFFF
##4051991.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305A9C
Deuteranopia (green-blind)
#235297
Tritanopia (blue-blind)
#04616D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #405199;
/* rgb */ color: rgb(64, 81, 153);
/* oklch */ color: oklch(45.9% 0.118 271.1);
Tailwind
colors: {
  custom: {
    50: '#7c81b7',
    500: '#405199',
    950: '#000000',
  },
}
SCSS
$custom: #405199;
$custom-light: #7c81b7;
$custom-dark: #000000;
JSON
{
  "hex": "#405199",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 153
  },
  "hsl": {
    "h": 228.539,
    "s": 41.014,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45851,
    "c": 0.11845,
    "h": 271.1
  },
  "luminance": 0.09275
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405199

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

Preview Lab → · Contrast checker → · Palette generator →

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