#2F4CAB#2F4CAB
#2F4CAB is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.156 H 267.1°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4CAB |
|---|---|
| RGB | rgb(47, 76, 171) |
| HSL | hsl(226, 57%, 43%) |
| HSV | hsv(226, 73%, 67%) |
| CMYK | cmyk(72.5%, 55.6%, 0%, 32.9%) |
| CIE-LAB | lab(35.42, 22.78, -54.12) |
| CIE-LCH | lch(35.42, 58.72, 292.83°) |
| OKLab | oklab(45.17% -0.008 -0.1559) |
| OKLCH | oklch(45.17% 0.156 267.1) |
| XYZ | xyz(11.1049, 8.7123, 39.6166) |
| Luminance | 0.0871 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.07
Sapphire
#0F52BA
ΔE00 3.69
Cobalt (survey)
#1E488F
ΔE00 4.80
Blue Blue
#2242C7
ΔE00 5.06
Dusk Blue
#26538D
ΔE00 6.03
Sapphire (survey)
#2138AB
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4CAB #AB8E2F
analogous
#2F8AAB #2F4CAB #502FAB
triadic
#2F4CAB #AB2F4C #4CAB2F
tetradic
#2F4CAB #AB2F8A #AB8E2F #2FAB50
square
#2F4CAB #AB2F8A #AB8E2F #2FAB50
split-complementary
#2F4CAB #AB502F #8AAB2F
monochromatic
#15214B #22377B #2F4CAB #4A69CD #7A91DA
Accessibility & contrast
On white
7.66
#2F4CAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#2F4CAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4CAB
7.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4CAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4CAB | 1.00 | 7.66 | 2.74 | 7.66 |
| #FFFFFF | 7.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #2f4cab; /* rgb */ color: rgb(47, 76, 171); /* oklch */ color: oklch(45.2% 0.156 267.1);
Tailwind
colors: {
custom: {
50: '#787dc5',
500: '#2f4cab',
950: '#000000',
},
}SCSS
$custom: #2f4cab; $custom-light: #787dc5; $custom-dark: #000000;
JSON
{
"hex": "#2f4cab",
"rgb": {
"r": 47,
"g": 76,
"b": 171
},
"hsl": {
"h": 225.968,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.45174,
"c": 0.15608,
"h": 267.1
},
"luminance": 0.08713
}Semantic roles & 50–950 ramp
primary
#2F4CAB
secondary
#C3B073
accent
#BC48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82