#2F4CAC#2F4CAC
#2F4CAC is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.3% C 0.157 H 267.1°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4CAC |
|---|---|
| RGB | rgb(47, 76, 172) |
| HSL | hsl(226, 57%, 43%) |
| HSV | hsv(226, 73%, 67%) |
| CMYK | cmyk(72.7%, 55.8%, 0%, 32.5%) |
| CIE-LAB | lab(35.50, 23.15, -54.59) |
| CIE-LCH | lch(35.50, 59.30, 292.98°) |
| OKLab | oklab(45.25% -0.008 -0.1573) |
| OKLCH | oklch(45.25% 0.157 267.1) |
| XYZ | xyz(11.2005, 8.7506, 40.1205) |
| Luminance | 0.0875 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.10
Sapphire
#0F52BA
ΔE00 3.66
Cobalt (survey)
#1E488F
ΔE00 4.93
Blue Blue
#2242C7
ΔE00 4.94
Dusk Blue
#26538D
ΔE00 6.13
Sapphire (survey)
#2138AB
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4CAC #AC8F2F
analogous
#2F8AAC #2F4CAC #502FAC
triadic
#2F4CAC #AC2F4C #4CAC2F
tetradic
#2F4CAC #AC2F8A #AC8F2F #2FAC50
square
#2F4CAC #AC2F8A #AC8F2F #2FAC50
split-complementary
#2F4CAC #AC502F #8AAC2F
monochromatic
#15224C #22377C #2F4CAC #4B69CE #7B91DB
Accessibility & contrast
On white
7.64
#2F4CAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.75
#2F4CAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4CAC
7.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4CAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4CAC | 1.00 | 7.64 | 2.75 | 7.64 |
| #FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#004EAA
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #2f4cac; /* rgb */ color: rgb(47, 76, 172); /* oklch */ color: oklch(45.3% 0.157 267.1);
Tailwind
colors: {
custom: {
50: '#787dc5',
500: '#2f4cac',
950: '#000000',
},
}SCSS
$custom: #2f4cac; $custom-light: #787dc5; $custom-dark: #000000;
JSON
{
"hex": "#2f4cac",
"rgb": {
"r": 47,
"g": 76,
"b": 172
},
"hsl": {
"h": 226.08,
"s": 57.078,
"l": 42.941
},
"oklch": {
"l": 0.45254,
"c": 0.15747,
"h": 267.1
},
"luminance": 0.08752
}Semantic roles & 50–950 ramp
primary
#2F4CAC
secondary
#C3B174
accent
#BD47E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82