#2F4FAF#2F4FAF
#2F4FAF is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.1% C 0.158 H 266.3°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4FAF |
|---|---|
| RGB | rgb(47, 79, 175) |
| HSL | hsl(225, 58%, 44%) |
| HSV | hsv(225, 73%, 69%) |
| CMYK | cmyk(73.1%, 54.9%, 0%, 31.4%) |
| CIE-LAB | lab(36.54, 22.30, -54.69) |
| CIE-LCH | lch(36.54, 59.06, 292.18°) |
| OKLab | oklab(46.11% -0.0102 -0.1575) |
| OKLCH | oklch(46.11% 0.158 266.3) |
| XYZ | xyz(11.7034, 9.2902, 41.7255) |
| Luminance | 0.0929 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.87
Cobalt
#0047AB
ΔE00 3.48
Cobalt (survey)
#1E488F
ΔE00 5.28
Blue Blue
#2242C7
ΔE00 5.38
Denim Blue
#3B5B92
ΔE00 5.80
Dusk Blue
#26538D
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4FAF #AF8F2F
analogous
#2F8FAF #2F4FAF #4F2FAF
triadic
#2F4FAF #AF2F4F #4FAF2F
tetradic
#2F4FAF #AF2F8F #AF8F2F #2FAF4F
square
#2F4FAF #AF2F8F #AF8F2F #2FAF4F
split-complementary
#2F4FAF #AF4F2F #8FAF2F
monochromatic
#15234F #22397F #2F4FAF #4C6DCF #7C94DC
Accessibility & contrast
On white
7.35
#2F4FAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#2F4FAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4FAF
7.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4FAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4FAF | 1.00 | 7.35 | 2.86 | 7.35 |
| #FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #2f4faf; /* rgb */ color: rgb(47, 79, 175); /* oklch */ color: oklch(46.1% 0.158 266.3);
Tailwind
colors: {
custom: {
50: '#797fc8',
500: '#2f4faf',
950: '#000000',
},
}SCSS
$custom: #2f4faf; $custom-light: #797fc8; $custom-dark: #000000;
JSON
{
"hex": "#2f4faf",
"rgb": {
"r": 47,
"g": 79,
"b": 175
},
"hsl": {
"h": 225,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.46106,
"c": 0.15784,
"h": 266.3
},
"luminance": 0.09291
}Semantic roles & 50–950 ramp
primary
#2F4FAF
secondary
#C4B175
accent
#BA47E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82