#314EB7#314EB7
#314EB7 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.169 H 267.6°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).
Color values
| HEX | #314EB7 |
|---|---|
| RGB | rgb(49, 78, 183) |
| HSL | hsl(227, 58%, 45%) |
| HSV | hsv(227, 73%, 72%) |
| CMYK | cmyk(73.2%, 57.4%, 0%, 28.2%) |
| CIE-LAB | lab(36.97, 26.21, -58.72) |
| CIE-LCH | lch(36.97, 64.30, 294.05°) |
| OKLab | oklab(46.64% -0.0072 -0.1693) |
| OKLCH | oklch(46.64% 0.169 267.6) |
| XYZ | xyz(12.5353, 9.5193, 45.9673) |
| Luminance | 0.0952 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.36
Cobalt
#0047AB
ΔE00 4.08
Blue Blue
#2242C7
ΔE00 4.29
Blue (survey)
#0343DF
ΔE00 5.86
Cobalt (survey)
#1E488F
ΔE00 6.44
Ocean Blue
#4F42B5
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#314EB7 #B79A31
analogous
#3191B7 #314EB7 #5731B7
triadic
#314EB7 #B7314E #4EB731
tetradic
#314EB7 #B73191 #B79A31 #31B757
square
#314EB7 #B73191 #B79A31 #31B757
split-complementary
#314EB7 #B75731 #91B731
monochromatic
#172556 #243987 #314EB7 #546FD1 #8498DE
Accessibility & contrast
On white
7.23
#314EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#314EB7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #314EB7
7.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##314EB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##314EB7 | 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)
#005DBB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #314eb7; /* rgb */ color: rgb(49, 78, 183); /* oklch */ color: oklch(46.6% 0.169 267.6);
Tailwind
colors: {
custom: {
50: '#7c7fcd',
500: '#314eb7',
950: '#000000',
},
}SCSS
$custom: #314eb7; $custom-light: #7c7fcd; $custom-dark: #000000;
JSON
{
"hex": "#314eb7",
"rgb": {
"r": 49,
"g": 78,
"b": 183
},
"hsl": {
"h": 227.015,
"s": 57.759,
"l": 45.49
},
"oklch": {
"l": 0.46644,
"c": 0.16947,
"h": 267.6
},
"luminance": 0.09521
}Semantic roles & 50–950 ramp
primary
#314EB7
secondary
#C8B77C
accent
#C047E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82