#5146AF#5146AF
#5146AF is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.6% C 0.161 H 282.9°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).
Color values
| HEX | #5146AF |
|---|---|
| RGB | rgb(81, 70, 175) |
| HSL | hsl(246, 43%, 48%) |
| HSV | hsv(246, 60%, 69%) |
| CMYK | cmyk(53.7%, 60%, 0%, 31.4%) |
| CIE-LAB | lab(36.41, 33.79, -54.79) |
| CIE-LCH | lch(36.41, 64.37, 301.66°) |
| OKLab | oklab(46.58% 0.036 -0.157) |
| OKLCH | oklch(46.58% 0.161 282.9) |
| XYZ | xyz(13.3190, 9.2240, 41.6277) |
| Luminance | 0.0922 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 1.51
Blue With A Hint Of Purple
#533CC6
ΔE00 4.30
Blueberry
#464196
ΔE00 4.31
Bluey Purple
#6241C7
ΔE00 4.73
Blurple
#5539CC
ΔE00 5.33
Blue Blue
#2242C7
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5146AF #A4AF46
analogous
#466FAF #5146AF #8546AF
triadic
#5146AF #AF5146 #46AF51
tetradic
#5146AF #AF466F #A4AF46 #46AF85
square
#5146AF #AF466F #A4AF46 #46AF85
split-complementary
#5146AF #AF8546 #6FAF46
monochromatic
#292358 #3D3583 #5146AF #776DC5 #A099D6
Accessibility & contrast
On white
7.38
#5146AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.85
#5146AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5146AF
7.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5146AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5146AF | 1.00 | 7.38 | 2.85 | 7.38 |
| #FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#295F73
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #5146af; /* rgb */ color: rgb(81, 70, 175); /* oklch */ color: oklch(46.6% 0.161 282.9);
Tailwind
colors: {
custom: {
50: '#8a7ac8',
500: '#5146af',
950: '#000000',
},
}SCSS
$custom: #5146af; $custom-light: #8a7ac8; $custom-dark: #000000;
JSON
{
"hex": "#5146af",
"rgb": {
"r": 81,
"g": 70,
"b": 175
},
"hsl": {
"h": 246.286,
"s": 42.857,
"l": 48.039
},
"oklch": {
"l": 0.46579,
"c": 0.16112,
"h": 282.9
},
"luminance": 0.09225
}Semantic roles & 50–950 ramp
primary
#5146AF
secondary
#BDC28E
accent
#D355C5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82