#2F54C4#2F54C4
#2F54C4 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.8% C 0.180 H 266.0°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2F54C4 |
|---|---|
| RGB | rgb(47, 84, 196) |
| HSL | hsl(225, 61%, 48%) |
| HSV | hsv(225, 76%, 77%) |
| CMYK | cmyk(76%, 57.1%, 0%, 23.1%) |
| CIE-LAB | lab(39.46, 26.90, -62.27) |
| CIE-LCH | lch(39.46, 67.83, 293.36°) |
| OKLab | oklab(48.81% -0.0127 -0.1797) |
| OKLCH | oklch(48.81% 0.18 266) |
| XYZ | xyz(14.3029, 10.9289, 53.5695) |
| Luminance | 0.1093 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.06
Warm Blue
#4B57DB
ΔE00 5.06
Blue Blue
#2242C7
ΔE00 5.56
Azul
#1D5DEC
ΔE00 5.63
Cobalt
#0047AB
ΔE00 5.77
Denim
#1560BD
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F54C4 #C49F2F
analogous
#2F9EC4 #2F54C4 #552FC4
triadic
#2F54C4 #C42F54 #54C42F
tetradic
#2F54C4 #C42F9E #C49F2F #2FC455
square
#2F54C4 #C42F9E #C49F2F #2FC455
split-complementary
#2F54C4 #C4552F #9EC42F
monochromatic
#172A61 #233F93 #2F54C4 #5978D7 #8AA0E3
Accessibility & contrast
On white
6.59
#2F54C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#2F54C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F54C4
6.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F54C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F54C4 | 1.00 | 6.59 | 3.19 | 6.59 |
| #FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#0056C2
Tritanopia (blue-blind)
#007084
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #2f54c4; /* rgb */ color: rgb(47, 84, 196); /* oklch */ color: oklch(48.8% 0.180 266.0);
Tailwind
colors: {
custom: {
50: '#7d83d7',
500: '#2f54c4',
950: '#000000',
},
}SCSS
$custom: #2f54c4; $custom-light: #7d83d7; $custom-dark: #000000;
JSON
{
"hex": "#2f54c4",
"rgb": {
"r": 47,
"g": 84,
"b": 196
},
"hsl": {
"h": 225.101,
"s": 61.317,
"l": 47.647
},
"oklch": {
"l": 0.48805,
"c": 0.18015,
"h": 266
},
"luminance": 0.10931
}Semantic roles & 50–950 ramp
primary
#2F54C4
secondary
#CDBA82
accent
#BC43E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83