#3151AC#3151AC
#3151AC is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.151 H 266.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).
Color values
| HEX | #3151AC |
|---|---|
| RGB | rgb(49, 81, 172) |
| HSL | hsl(224, 56%, 43%) |
| HSV | hsv(224, 72%, 67%) |
| CMYK | cmyk(71.5%, 52.9%, 0%, 32.5%) |
| CIE-LAB | lab(36.96, 20.12, -52.22) |
| CIE-LCH | lch(36.96, 55.97, 291.07°) |
| OKLab | oklab(46.38% -0.0103 -0.1502) |
| OKLCH | oklch(46.38% 0.151 266.1) |
| XYZ | xyz(11.6528, 9.5152, 40.2442) |
| Luminance | 0.0952 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.82
Cobalt
#0047AB
ΔE00 3.87
Denim Blue
#3B5B92
ΔE00 5.04
Cobalt (survey)
#1E488F
ΔE00 5.14
Dusk Blue
#26538D
ΔE00 5.28
Dusky Blue
#475F94
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151AC #AC8C31
analogous
#318EAC #3151AC #4E31AC
triadic
#3151AC #AC3151 #51AC31
tetradic
#3151AC #AC318E #AC8C31 #31AC4E
square
#3151AC #AC318E #AC8C31 #31AC4E
split-complementary
#3151AC #AC4E31 #8EAC31
monochromatic
#16244D #233B7C #3151AC #4E6FCC #7D95DA
Accessibility & contrast
On white
7.23
#3151AC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#3151AC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3151AC
7.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151AC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151AC | 1.00 | 7.23 | 2.90 | 7.23 |
| #FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#145DAF
Deuteranopia (green-blind)
#0052AA
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #3151ac; /* rgb */ color: rgb(49, 81, 172); /* oklch */ color: oklch(46.4% 0.151 266.1);
Tailwind
colors: {
custom: {
50: '#7981c5',
500: '#3151ac',
950: '#000000',
},
}SCSS
$custom: #3151ac; $custom-light: #7981c5; $custom-dark: #000000;
JSON
{
"hex": "#3151ac",
"rgb": {
"r": 49,
"g": 81,
"b": 172
},
"hsl": {
"h": 224.39,
"s": 55.656,
"l": 43.333
},
"oklch": {
"l": 0.4638,
"c": 0.15054,
"h": 266.1
},
"luminance": 0.09516
}Semantic roles & 50–950 ramp
primary
#3151AC
secondary
#C3AF76
accent
#B849DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82