#2F4EAB#2F4EAB
#2F4EAB is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.6% C 0.154 H 266.4°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4EAB |
|---|---|
| RGB | rgb(47, 78, 171) |
| HSL | hsl(225, 57%, 43%) |
| HSV | hsv(225, 73%, 67%) |
| CMYK | cmyk(72.5%, 54.4%, 0%, 32.9%) |
| CIE-LAB | lab(35.97, 21.45, -53.23) |
| CIE-LCH | lch(35.97, 57.39, 291.95°) |
| OKLab | oklab(45.58% -0.0097 -0.1532) |
| OKLCH | oklch(45.58% 0.154 266.4) |
| XYZ | xyz(11.2448, 8.9922, 39.6632) |
| Luminance | 0.0899 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.21
Cobalt
#0047AB
ΔE00 3.22
Cobalt (survey)
#1E488F
ΔE00 4.76
Blue Blue
#2242C7
ΔE00 5.55
Dusk Blue
#26538D
ΔE00 5.57
Denim Blue
#3B5B92
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4EAB #AB8C2F
analogous
#2F8CAB #2F4EAB #4E2FAB
triadic
#2F4EAB #AB2F4E #4EAB2F
tetradic
#2F4EAB #AB2F8C #AB8C2F #2FAB4E
square
#2F4EAB #AB2F8C #AB8C2F #2FAB4E
split-complementary
#2F4EAB #AB4E2F #8CAB2F
monochromatic
#15224B #22387B #2F4EAB #4A6BCD #7A92DA
Accessibility & contrast
On white
7.50
#2F4EAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#2F4EAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4EAB
7.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4EAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4EAB | 1.00 | 7.50 | 2.80 | 7.50 |
| #FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#045BAE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #2f4eab; /* rgb */ color: rgb(47, 78, 171); /* oklch */ color: oklch(45.6% 0.154 266.4);
Tailwind
colors: {
custom: {
50: '#787fc5',
500: '#2f4eab',
950: '#000000',
},
}SCSS
$custom: #2f4eab; $custom-light: #787fc5; $custom-dark: #000000;
JSON
{
"hex": "#2f4eab",
"rgb": {
"r": 47,
"g": 78,
"b": 171
},
"hsl": {
"h": 225,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.45584,
"c": 0.15354,
"h": 266.4
},
"luminance": 0.08993
}Semantic roles & 50–950 ramp
primary
#2F4EAB
secondary
#C3AF73
accent
#BA48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82