#314EB5#314EB5
#314EB5 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.167 H 267.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).
Color values
| HEX | #314EB5 |
|---|---|
| RGB | rgb(49, 78, 181) |
| HSL | hsl(227, 57%, 45%) |
| HSV | hsv(227, 73%, 71%) |
| CMYK | cmyk(72.9%, 56.9%, 0%, 29%) |
| CIE-LAB | lab(36.81, 25.47, -57.79) |
| CIE-LCH | lch(36.81, 63.15, 293.78°) |
| OKLab | oklab(46.48% -0.0073 -0.1666) |
| OKLCH | oklch(46.48% 0.167 267.5) |
| XYZ | xyz(12.3286, 9.4366, 44.8788) |
| Luminance | 0.0944 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.31
Cobalt
#0047AB
ΔE00 3.92
Blue Blue
#2242C7
ΔE00 4.46
Blue (survey)
#0343DF
ΔE00 6.10
Cobalt (survey)
#1E488F
ΔE00 6.18
Ocean Blue
#4F42B5
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#314EB5 #B59831
analogous
#3190B5 #314EB5 #5631B5
triadic
#314EB5 #B5314E #4EB531
tetradic
#314EB5 #B53190 #B59831 #31B556
square
#314EB5 #B53190 #B59831 #31B556
split-complementary
#314EB5 #B55631 #90B531
monochromatic
#172455 #243985 #314EB5 #536ED0 #8397DD
Accessibility & contrast
On white
7.27
#314EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#314EB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #314EB5
7.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##314EB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##314EB5 | 1.00 | 7.27 | 2.89 | 7.27 |
| #FFFFFF | 7.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #314eb5; /* rgb */ color: rgb(49, 78, 181); /* oklch */ color: oklch(46.5% 0.167 267.5);
Tailwind
colors: {
custom: {
50: '#7b7fcc',
500: '#314eb5',
950: '#000000',
},
}SCSS
$custom: #314eb5; $custom-light: #7b7fcc; $custom-dark: #000000;
JSON
{
"hex": "#314eb5",
"rgb": {
"r": 49,
"g": 78,
"b": 181
},
"hsl": {
"h": 226.818,
"s": 57.391,
"l": 45.098
},
"oklch": {
"l": 0.46481,
"c": 0.16675,
"h": 267.5
},
"luminance": 0.09438
}Semantic roles & 50–950 ramp
primary
#314EB5
secondary
#C7B67B
accent
#BF47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82