#2F4FAC#2F4FAC
#2F4FAC is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.9% C 0.154 H 266.1°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4FAC |
|---|---|
| RGB | rgb(47, 79, 172) |
| HSL | hsl(225, 57%, 43%) |
| HSV | hsv(225, 73%, 67%) |
| CMYK | cmyk(72.7%, 54.1%, 0%, 32.5%) |
| CIE-LAB | lab(36.32, 21.17, -53.27) |
| CIE-LCH | lch(36.32, 57.32, 291.67°) |
| OKLab | oklab(45.87% -0.0104 -0.1533) |
| OKLCH | oklch(45.87% 0.154 266.1) |
| XYZ | xyz(11.4121, 9.1737, 40.1910) |
| Luminance | 0.0917 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.96
Cobalt
#0047AB
ΔE00 3.38
Cobalt (survey)
#1E488F
ΔE00 4.90
Dusk Blue
#26538D
ΔE00 5.47
Denim Blue
#3B5B92
ΔE00 5.53
Blue Blue
#2242C7
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4FAC #AC8C2F
analogous
#2F8DAC #2F4FAC #4D2FAC
triadic
#2F4FAC #AC2F4F #4FAC2F
tetradic
#2F4FAC #AC2F8D #AC8C2F #2FAC4D
square
#2F4FAC #AC2F8D #AC8C2F #2FAC4D
split-complementary
#2F4FAC #AC4D2F #8DAC2F
monochromatic
#15234C #22397C #2F4FAC #4B6CCE #7B93DB
Accessibility & contrast
On white
7.41
#2F4FAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.83
#2F4FAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4FAC
7.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4FAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4FAC | 1.00 | 7.41 | 2.83 | 7.41 |
| #FFFFFF | 7.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#075BAF
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #2f4fac; /* rgb */ color: rgb(47, 79, 172); /* oklch */ color: oklch(45.9% 0.154 266.1);
Tailwind
colors: {
custom: {
50: '#787fc5',
500: '#2f4fac',
950: '#000000',
},
}SCSS
$custom: #2f4fac; $custom-light: #787fc5; $custom-dark: #000000;
JSON
{
"hex": "#2f4fac",
"rgb": {
"r": 47,
"g": 79,
"b": 172
},
"hsl": {
"h": 224.64,
"s": 57.078,
"l": 42.941
},
"oklch": {
"l": 0.4587,
"c": 0.15367,
"h": 266.1
},
"luminance": 0.09175
}Semantic roles & 50–950 ramp
primary
#2F4FAC
secondary
#C3AF74
accent
#B947E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82