#4158AB#4158AB
#4158AB is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.6% C 0.135 H 269.2°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).
Color values
| HEX | #4158AB |
|---|---|
| RGB | rgb(65, 88, 171) |
| HSL | hsl(227, 45%, 46%) |
| HSV | hsv(227, 62%, 67%) |
| CMYK | cmyk(62%, 48.5%, 0%, 32.9%) |
| CIE-LAB | lab(39.65, 17.86, -47.25) |
| CIE-LCH | lch(39.65, 50.51, 290.70°) |
| OKLab | oklab(48.63% -0.0018 -0.1351) |
| OKLCH | oklch(48.63% 0.135 269.2) |
| XYZ | xyz(13.0179, 11.0424, 39.9656) |
| Luminance | 0.1104 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim Blue
#3B5B92
ΔE00 4.26
Dusky Blue
#475F94
ΔE00 4.32
Sapphire
#0F52BA
ΔE00 4.63
Denim
#1560BD
ΔE00 6.24
Dusk Blue
#26538D
ΔE00 6.26
Cobalt
#0047AB
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4158AB #AB9441
analogous
#418DAB #4158AB #5F41AB
triadic
#4158AB #AB4158 #58AB41
tetradic
#4158AB #AB418D #AB9441 #41AB5F
square
#4158AB #AB418D #AB9441 #41AB5F
split-complementary
#4158AB #AB5F41 #8DAB41
monochromatic
#1F2A52 #30417F #4158AB #657AC4 #91A0D5
Accessibility & contrast
On white
6.54
#4158AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.21
#4158AB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4158AB
6.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4158AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4158AB | 1.00 | 6.54 | 3.21 | 6.54 |
| #FFFFFF | 6.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E62AE
Deuteranopia (green-blind)
#1A59A9
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #4158ab; /* rgb */ color: rgb(65, 88, 171); /* oklch */ color: oklch(48.6% 0.135 269.2);
Tailwind
colors: {
custom: {
50: '#8086c4',
500: '#4158ab',
950: '#000000',
},
}SCSS
$custom: #4158ab; $custom-light: #8086c4; $custom-dark: #000000;
JSON
{
"hex": "#4158ab",
"rgb": {
"r": 65,
"g": 88,
"b": 171
},
"hsl": {
"h": 226.981,
"s": 44.915,
"l": 46.275
},
"oklch": {
"l": 0.48629,
"c": 0.13511,
"h": 269.2
},
"luminance": 0.11044
}Semantic roles & 50–950 ramp
primary
#4158AB
secondary
#C1B487
accent
#B953D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82