#3151AF#3151AF
#3151AF is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.6% C 0.155 H 266.3°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).
Color values
| HEX | #3151AF |
|---|---|
| RGB | rgb(49, 81, 175) |
| HSL | hsl(225, 56%, 44%) |
| HSV | hsv(225, 72%, 69%) |
| CMYK | cmyk(72%, 53.7%, 0%, 31.4%) |
| CIE-LAB | lab(37.17, 21.25, -53.65) |
| CIE-LCH | lch(37.17, 57.71, 291.61°) |
| OKLab | oklab(46.61% -0.0101 -0.1544) |
| OKLCH | oklch(46.61% 0.155 266.3) |
| XYZ | xyz(11.9442, 9.6317, 41.7788) |
| Luminance | 0.0963 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.71
Cobalt
#0047AB
ΔE00 3.95
Denim Blue
#3B5B92
ΔE00 5.33
Cobalt (survey)
#1E488F
ΔE00 5.49
Dusk Blue
#26538D
ΔE00 5.64
Blue Blue
#2242C7
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151AF #AF8F31
analogous
#3190AF #3151AF #5031AF
triadic
#3151AF #AF3151 #51AF31
tetradic
#3151AF #AF3190 #AF8F31 #31AF50
square
#3151AF #AF3190 #AF8F31 #31AF50
split-complementary
#3151AF #AF5031 #90AF31
monochromatic
#16254F #243B7F #3151AF #4F6FCE #7F97DB
Accessibility & contrast
On white
7.18
#3151AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#3151AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3151AF
7.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151AF | 1.00 | 7.18 | 2.93 | 7.18 |
| #FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B5EB2
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #3151af; /* rgb */ color: rgb(49, 81, 175); /* oklch */ color: oklch(46.6% 0.155 266.3);
Tailwind
colors: {
custom: {
50: '#7a81c8',
500: '#3151af',
950: '#000000',
},
}SCSS
$custom: #3151af; $custom-light: #7a81c8; $custom-dark: #000000;
JSON
{
"hex": "#3151af",
"rgb": {
"r": 49,
"g": 81,
"b": 175
},
"hsl": {
"h": 224.762,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.46612,
"c": 0.15472,
"h": 266.3
},
"luminance": 0.09633
}Semantic roles & 50–950 ramp
primary
#3151AF
secondary
#C4B178
accent
#B948E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82