#313DE2#313DE2
#313DE2 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.8% C 0.243 H 269.9°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).
Color values
| HEX | #313DE2 |
|---|---|
| RGB | rgb(49, 61, 226) |
| HSL | hsl(236, 75%, 54%) |
| HSV | hsv(236, 78%, 89%) |
| CMYK | cmyk(78.3%, 73%, 0%, 11.4%) |
| CIE-LAB | lab(36.89, 51.83, -83.76) |
| CIE-LCH | lch(36.89, 98.50, 301.75°) |
| OKLab | oklab(47.76% -0.0005 -0.2426) |
| OKLCH | oklch(47.76% 0.243 269.9) |
| XYZ | xyz(16.6581, 9.4795, 72.8885) |
| Luminance | 0.0948 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Vibrant Blue
#0339F8
ΔE00 2.42
Blue (survey)
#0343DF
ΔE00 2.79
Vivid Blue
#152EFF
ΔE00 3.75
Light Royal Blue
#3A2EFE
ΔE00 4.10
Blue Blue
#2242C7
ΔE00 4.24
Blurple
#5539CC
ΔE00 4.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313DE2 #E2D631
analogous
#3196E2 #313DE2 #7E31E2
triadic
#313DE2 #E2313D #3DE231
tetradic
#313DE2 #E23196 #E2D631 #31E27E
square
#313DE2 #E23196 #E2D631 #31E27E
split-complementary
#313DE2 #E27E31 #96E231
monochromatic
#131B86 #1A25BB #313DE2 #6770EA #9CA2F1
Accessibility & contrast
On white
7.25
#313DE2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#313DE2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313DE2
7.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313DE2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313DE2 | 1.00 | 7.25 | 2.90 | 7.25 |
| #FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FE7
Deuteranopia (green-blind)
#004EDF
Tritanopia (blue-blind)
#006D8C
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #313de2; /* rgb */ color: rgb(49, 61, 226); /* oklch */ color: oklch(47.8% 0.243 269.9);
Tailwind
colors: {
custom: {
50: '#8774ed',
500: '#313de2',
950: '#000000',
},
}SCSS
$custom: #313de2; $custom-light: #8774ed; $custom-dark: #000000;
JSON
{
"hex": "#313de2",
"rgb": {
"r": 49,
"g": 61,
"b": 226
},
"hsl": {
"h": 235.932,
"s": 75.319,
"l": 53.922
},
"oklch": {
"l": 0.47763,
"c": 0.24263,
"h": 269.9
},
"luminance": 0.09481
}Semantic roles & 50–950 ramp
primary
#313DE2
secondary
#DDD892
accent
#E536F2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84