#2F51AE#2F51AE
#2F51AE is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.154 H 265.6°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).
Color values
| HEX | #2F51AE |
|---|---|
| RGB | rgb(47, 81, 174) |
| HSL | hsl(224, 57%, 43%) |
| HSV | hsv(224, 73%, 68%) |
| CMYK | cmyk(73%, 53.4%, 0%, 31.8%) |
| CIE-LAB | lab(37.01, 20.60, -53.33) |
| CIE-LCH | lch(37.01, 57.17, 291.12°) |
| OKLab | oklab(46.44% -0.0119 -0.1535) |
| OKLCH | oklch(46.44% 0.154 265.6) |
| XYZ | xyz(11.7520, 9.5439, 41.2590) |
| Luminance | 0.0954 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.53
Cobalt
#0047AB
ΔE00 3.77
Denim Blue
#3B5B92
ΔE00 5.18
Cobalt (survey)
#1E488F
ΔE00 5.25
Dusk Blue
#26538D
ΔE00 5.35
Blue Blue
#2242C7
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F51AE #AE8C2F
analogous
#2F90AE #2F51AE #4C2FAE
triadic
#2F51AE #AE2F51 #51AE2F
tetradic
#2F51AE #AE2F90 #AE8C2F #2FAE4C
square
#2F51AE #AE2F90 #AE8C2F #2FAE4C
split-complementary
#2F51AE #AE4C2F #90AE2F
monochromatic
#15244E #223B7E #2F51AE #4C6FCF #7C95DC
Accessibility & contrast
On white
7.22
#2F51AE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#2F51AE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F51AE
7.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F51AE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F51AE | 1.00 | 7.22 | 2.91 | 7.22 |
| #FFFFFF | 7.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E5DB1
Deuteranopia (green-blind)
#0052AC
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2f51ae; /* rgb */ color: rgb(47, 81, 174); /* oklch */ color: oklch(46.4% 0.154 265.6);
Tailwind
colors: {
custom: {
50: '#7981c7',
500: '#2f51ae',
950: '#000000',
},
}SCSS
$custom: #2f51ae; $custom-light: #7981c7; $custom-dark: #000000;
JSON
{
"hex": "#2f51ae",
"rgb": {
"r": 47,
"g": 81,
"b": 174
},
"hsl": {
"h": 223.937,
"s": 57.466,
"l": 43.333
},
"oklch": {
"l": 0.46441,
"c": 0.15393,
"h": 265.6
},
"luminance": 0.09545
}Semantic roles & 50–950 ramp
primary
#2F51AE
secondary
#C4AF75
accent
#B847E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82