#2F51AF#2F51AF
#2F51AF is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.155 H 265.6°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2F51AF |
|---|---|
| RGB | rgb(47, 81, 175) |
| HSL | hsl(224, 58%, 44%) |
| HSV | hsv(224, 73%, 69%) |
| CMYK | cmyk(73.1%, 53.7%, 0%, 31.4%) |
| CIE-LAB | lab(37.08, 20.97, -53.80) |
| CIE-LCH | lch(37.08, 57.75, 291.30°) |
| OKLab | oklab(46.52% -0.0118 -0.1549) |
| OKLCH | oklch(46.52% 0.155 265.6) |
| XYZ | xyz(11.8499, 9.5831, 41.7743) |
| Luminance | 0.0958 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.49
Cobalt
#0047AB
ΔE00 3.80
Denim Blue
#3B5B92
ΔE00 5.28
Cobalt (survey)
#1E488F
ΔE00 5.37
Dusk Blue
#26538D
ΔE00 5.47
Blue Blue
#2242C7
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F51AF #AF8D2F
analogous
#2F91AF #2F51AF #4D2FAF
triadic
#2F51AF #AF2F51 #51AF2F
tetradic
#2F51AF #AF2F91 #AF8D2F #2FAF4D
square
#2F51AF #AF2F91 #AF8D2F #2FAF4D
split-complementary
#2F51AF #AF4D2F #91AF2F
monochromatic
#15244F #223B7F #2F51AF #4C6FCF #7C96DC
Accessibility & contrast
On white
7.20
#2F51AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.92
#2F51AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F51AF
7.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F51AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F51AF | 1.00 | 7.20 | 2.92 | 7.20 |
| #FFFFFF | 7.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0A5DB2
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2f51af; /* rgb */ color: rgb(47, 81, 175); /* oklch */ color: oklch(46.5% 0.155 265.6);
Tailwind
colors: {
custom: {
50: '#7981c8',
500: '#2f51af',
950: '#000000',
},
}SCSS
$custom: #2f51af; $custom-light: #7981c8; $custom-dark: #000000;
JSON
{
"hex": "#2f51af",
"rgb": {
"r": 47,
"g": 81,
"b": 175
},
"hsl": {
"h": 224.063,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.46519,
"c": 0.15532,
"h": 265.6
},
"luminance": 0.09584
}Semantic roles & 50–950 ramp
primary
#2F51AF
secondary
#C4AF75
accent
#B847E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82