#405197#405197
#405197 is a mid, moderate blue. Relative luminance 0.092; OKLCH L 45.7% C 0.115 H 271.0°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).
Color values
| HEX | #405197 |
|---|---|
| RGB | rgb(64, 81, 151) |
| HSL | hsl(228, 40%, 42%) |
| HSV | hsv(228, 58%, 59%) |
| CMYK | cmyk(57.6%, 46.4%, 0%, 40.8%) |
| CIE-LAB | lab(36.38, 15.19, -40.53) |
| CIE-LCH | lch(36.38, 43.28, 290.55°) |
| OKLab | oklab(45.72% 0.0019 -0.1155) |
| OKLCH | oklch(45.72% 0.115 271) |
| XYZ | xyz(10.6409, 9.2084, 30.4888) |
| Luminance | 0.0921 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 4.22
Denim Blue
#3B5B92
ΔE00 4.53
Dusky Blue
#475F94
ΔE00 4.91
Cobalt (survey)
#1E488F
ΔE00 5.19
Dusk Blue
#26538D
ΔE00 5.58
Dusk
#4E5481
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405197 #978640
analogous
#407D97 #405197 #5B4097
triadic
#405197 #974051 #519740
tetradic
#405197 #97407D #978640 #40975B
square
#405197 #97407D #978640 #40975B
split-complementary
#405197 #975B40 #7D9740
monochromatic
#1C2341 #2E3A6C #405197 #5B6DB9 #8693CC
Accessibility & contrast
On white
7.39
#405197 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#405197 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #405197
7.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405197 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405197 | 1.00 | 7.39 | 2.84 | 7.39 |
| #FFFFFF | 7.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#315A9A
Deuteranopia (green-blind)
#265296
Tritanopia (blue-blind)
#09606C
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #405197; /* rgb */ color: rgb(64, 81, 151); /* oklch */ color: oklch(45.7% 0.115 271.0);
Tailwind
colors: {
custom: {
50: '#7c81b6',
500: '#405197',
950: '#000000',
},
}SCSS
$custom: #405197; $custom-light: #7c81b6; $custom-dark: #000000;
JSON
{
"hex": "#405197",
"rgb": {
"r": 64,
"g": 81,
"b": 151
},
"hsl": {
"h": 228.276,
"s": 40.465,
"l": 42.157
},
"oklch": {
"l": 0.45716,
"c": 0.11549,
"h": 271
},
"luminance": 0.09209
}Semantic roles & 50–950 ramp
primary
#405197
secondary
#B6AB7D
accent
#B957D0
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80