#2F4CC4#2F4CC4
#2F4CC4 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.3% C 0.190 H 267.8°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4CC4 |
|---|---|
| RGB | rgb(47, 76, 196) |
| HSL | hsl(228, 61%, 48%) |
| HSV | hsv(228, 76%, 77%) |
| CMYK | cmyk(76%, 61.2%, 0%, 23.1%) |
| CIE-LAB | lab(37.40, 32.08, -65.62) |
| CIE-LCH | lch(37.40, 73.04, 296.05°) |
| OKLab | oklab(47.27% -0.0073 -0.1897) |
| OKLCH | oklch(47.27% 0.19 267.8) |
| XYZ | xyz(13.7171, 9.7572, 53.3743) |
| Luminance | 0.0976 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.98
Blue (survey)
#0343DF
ΔE00 4.04
Sapphire
#0F52BA
ΔE00 4.38
Cobalt
#0047AB
ΔE00 5.17
Warm Blue
#4B57DB
ΔE00 5.55
Ocean Blue
#4F42B5
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4CC4 #C4A72F
analogous
#2F97C4 #2F4CC4 #5C2FC4
triadic
#2F4CC4 #C42F4C #4CC42F
tetradic
#2F4CC4 #C42F97 #C4A72F #2FC45C
square
#2F4CC4 #C42F97 #C4A72F #2FC45C
split-complementary
#2F4CC4 #C45C2F #97C42F
monochromatic
#172661 #233993 #2F4CC4 #5972D7 #8A9CE3
Accessibility & contrast
On white
7.11
#2F4CC4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#2F4CC4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4CC4
7.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4CC4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4CC4 | 1.00 | 7.11 | 2.95 | 7.11 |
| #FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FC8
Deuteranopia (green-blind)
#0051C2
Tritanopia (blue-blind)
#006B81
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2f4cc4; /* rgb */ color: rgb(47, 76, 196); /* oklch */ color: oklch(47.3% 0.190 267.8);
Tailwind
colors: {
custom: {
50: '#7e7dd7',
500: '#2f4cc4',
950: '#000000',
},
}SCSS
$custom: #2f4cc4; $custom-light: #7e7dd7; $custom-dark: #000000;
JSON
{
"hex": "#2f4cc4",
"rgb": {
"r": 47,
"g": 76,
"b": 196
},
"hsl": {
"h": 228.322,
"s": 61.317,
"l": 47.647
},
"oklch": {
"l": 0.47271,
"c": 0.1898,
"h": 267.8
},
"luminance": 0.09759
}Semantic roles & 50–950 ramp
primary
#2F4CC4
secondary
#CDBE82
accent
#C543E4
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83