#313FE2#313FE2
#313FE2 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 48.0% C 0.241 H 269.7°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).
Color values
| HEX | #313FE2 |
|---|---|
| RGB | rgb(49, 63, 226) |
| HSL | hsl(235, 75%, 54%) |
| HSV | hsv(235, 78%, 89%) |
| CMYK | cmyk(78.3%, 72.1%, 0%, 11.4%) |
| CIE-LAB | lab(37.29, 50.71, -83.10) |
| CIE-LCH | lch(37.29, 97.35, 301.39°) |
| OKLab | oklab(48.05% -0.0012 -0.2407) |
| OKLCH | oklch(48.05% 0.241 269.7) |
| XYZ | xyz(16.7669, 9.6971, 72.9248) |
| Luminance | 0.0970 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue (survey)
#0343DF
ΔE00 2.52
Vibrant Blue
#0339F8
ΔE00 2.53
Vivid Blue
#152EFF
ΔE00 4.05
Blue Blue
#2242C7
ΔE00 4.11
Light Royal Blue
#3A2EFE
ΔE00 4.37
Blurple
#5539CC
ΔE00 4.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313FE2 #E2D431
analogous
#3198E2 #313FE2 #7C31E2
triadic
#313FE2 #E2313F #3FE231
tetradic
#313FE2 #E23198 #E2D431 #31E27C
square
#313FE2 #E23198 #E2D431 #31E27C
split-complementary
#313FE2 #E27C31 #98E231
monochromatic
#131C86 #1A27BB #313FE2 #6771EA #9CA3F1
Accessibility & contrast
On white
7.14
#313FE2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#313FE2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313FE2
7.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313FE2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313FE2 | 1.00 | 7.14 | 2.94 | 7.14 |
| #FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060E7
Deuteranopia (green-blind)
#004FDF
Tritanopia (blue-blind)
#006E8D
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #313fe2; /* rgb */ color: rgb(49, 63, 226); /* oklch */ color: oklch(48.0% 0.241 269.7);
Tailwind
colors: {
custom: {
50: '#8775ed',
500: '#313fe2',
950: '#000000',
},
}SCSS
$custom: #313fe2; $custom-light: #8775ed; $custom-dark: #000000;
JSON
{
"hex": "#313fe2",
"rgb": {
"r": 49,
"g": 63,
"b": 226
},
"hsl": {
"h": 235.254,
"s": 75.319,
"l": 53.922
},
"oklch": {
"l": 0.4805,
"c": 0.24072,
"h": 269.7
},
"luminance": 0.09699
}Semantic roles & 50–950 ramp
primary
#313FE2
secondary
#DDD792
accent
#E336F2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0D0816
muted
#7E7B84