#3151C8#3151C8
#3151C8 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.6% C 0.189 H 267.3°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).
Color values
| HEX | #3151C8 |
|---|---|
| RGB | rgb(49, 81, 200) |
| HSL | hsl(227, 61%, 49%) |
| HSV | hsv(227, 76%, 78%) |
| CMYK | cmyk(75.5%, 59.5%, 0%, 21.6%) |
| CIE-LAB | lab(39.08, 30.55, -65.20) |
| CIE-LCH | lch(39.08, 72.00, 295.10°) |
| OKLab | oklab(48.64% -0.0089 -0.1883) |
| OKLCH | oklch(48.64% 0.189 267.3) |
| XYZ | xyz(14.6307, 10.7063, 55.9278) |
| Luminance | 0.1071 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.95
Blue Blue
#2242C7
ΔE00 4.49
Warm Blue
#4B57DB
ΔE00 4.52
Blue (survey)
#0343DF
ΔE00 4.81
Azul
#1D5DEC
ΔE00 5.84
Cobalt
#0047AB
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151C8 #C8A831
analogous
#319DC8 #3151C8 #5D31C8
triadic
#3151C8 #C83151 #51C831
tetradic
#3151C8 #C8319D #C8A831 #31C85D
square
#3151C8 #C8319D #C8A831 #31C85D
split-complementary
#3151C8 #C85D31 #9DC831
monochromatic
#192966 #253D97 #3151C8 #5F78D8 #90A1E4
Accessibility & contrast
On white
6.68
#3151C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.14
#3151C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3151C8
6.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151C8 | 1.00 | 6.68 | 3.14 | 6.68 |
| #FFFFFF | 6.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#0055C6
Tritanopia (blue-blind)
#006F84
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #3151c8; /* rgb */ color: rgb(49, 81, 200); /* oklch */ color: oklch(48.6% 0.189 267.3);
Tailwind
colors: {
custom: {
50: '#7f81da',
500: '#3151c8',
950: '#000000',
},
}SCSS
$custom: #3151c8; $custom-light: #7f81da; $custom-dark: #000000;
JSON
{
"hex": "#3151c8",
"rgb": {
"r": 49,
"g": 81,
"b": 200
},
"hsl": {
"h": 227.285,
"s": 60.643,
"l": 48.824
},
"oklch": {
"l": 0.48643,
"c": 0.18855,
"h": 267.3
},
"luminance": 0.10708
}Semantic roles & 50–950 ramp
primary
#3151C8
secondary
#CEBF86
accent
#C244E4
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83